i'm in the c++ inheritance lesson in cprogramming.com... In that the syntax for making a class(derived class) inherit all the stuff from another class(base class) is this:
My Question is, that instead of writing:Code:class base{ //members... }; class derived : public base{ //members. };
if i write:Code:class derived : public base{ //members. };
or if i write:Code:class derived : protected base{ //members. };
What would it mean?Code:class derived : private base{ //members. };
can anybody help me out please?



LinkBack URL
About LinkBacks


