inherit from classes..

as far as i've understood, inheritance make it posible to inherit member from a class to a new class.. i've also heard something about specific inheritance due to the access specifier...

could you use inheritance to only inherit certain members of a class, if so how come ???
A child class has all the parts and members of its parents. Always.

Access specifiers (public, protected, private) do not change this... they merely dictate how those members can be accessed inside and out of the child class.
Topic archived. No new replies allowed.