'member' not accessible because 'class1' uses 'access' to inherit from 'class2'
You tried 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.