Is a default visibility member of a subclass visible to methods of another subclass derived from the same base type? What about protected?
1 2 3 4 5 6 7 8 9 10 11
class SubClass1 : public BaseClass
class SubClass2 : public BaseClass
If I have some method in SubClass2 that is passed a BaseClass as an argument, can that method perform the assignment x=4 or y=4?