Inheritance ....cont

What is inherited from the base class?
In principle every member of a base class is inherited by a derived class except:
         Constructor and destructor
         operator=()member
         friends
Although the constructor and destructor of the base class are not inherited, the default constructor and the destructor of the base class are alwyas called when a new object of a derrived class is created and destrroyed.   LEARN MORE>>

No comments: