CSCE 121 Chapter Notes - Chapter 11: Multiple Inheritance, Code Reuse, Include Directive
Document Summary
If the derived class does not override a public member function of the base class, you may specify a call to that. The constructors of a derived class can (directly) initialize only the (public data) members inherited from the base. A call to the base class"s constructor is specified in the heading of the definition of a derived class constructor. In protected inheritance, public and protected members of the base class become the protected members. If inheritance is private, all members of the base class, including private members, become private members. In multiple inheritance, the derived class has more than one base class. A derived class cannot directly access public members of a base class. The private members of a base class can be directly accessed by a derived class. Ans: f public member function by using the name of the function and the appropriate parameter list.