Possible Duplicate:
Private/protected inheritance
Can you give me example for private inheritance in C++? As I understood, in this sort of inheritance, the public and the protected features of the parent don’t filter throght the child, and only the public features of the child are visible.
Private Inheritance:
All
Publicmembers of the Base Class becomePrivateMembers of the Derived class &All
Protectedmembers of the Base Class becomePrivateMembers of the Derived Class.An code Example:
If you are inclined to know about Inheritance & Access specifiers you can check out more at this answer I posted quite a while ago.