Posted by AG on December 19, 2001 at 01:15:49:
In Reply to: inheritance posted by adam on December 19, 2001 at 00:42:31:
there's a type error in the notes. protected members are protected in the derived class as well when public inheritance is used. mcq pointed this error out during the lecture.
: this may get confusing...
: in public inheritance protected members of a base class become private members of the derived only accesible to member and friends of the derived...and classes derived from the derived class.
: what i dont understand is how what has become a private member of the derived class can be accessed from derived classes from this. i thought private members where never accessible from derived classes.