'member' not accessible because 'class1' uses 'access' to inherit from 'class2'
There was an attempt to access a member of a class that was inherited from another class with the private or protected attribute.
This is a warning instead of an error, because the access violation occurred due to a type cast.