CSCE 121 Chapter Notes - Chapter 11: Multiple Inheritance, Code Reuse, Include Directive

82 views10 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents