Friday, February 5, 2010

What is private, public and protected Inheritance?

Private Inheritance 
The Public and protected members of Base class become private members of the derived class.
Public Inheritance 
All the public members and protected members are inherited as public and protected respectively.
Protected Inheritance 
Public and Protected members are derived as protected members.

0 Comments: