inheritance

can one class which is derived from another class inherits some of the base classes's members and functions?


thanks
The derived class inherits all the members of the base class.
I'm a little unclear about what you're asking.

When a class inherits from another, it inherits all of functionality from the base class, as Peter87 said.

But members of the derived class can only access the members of the base class which were delared as either public or protected.

Andy
Last edited on
Topic archived. No new replies allowed.