Answer the following questions true (T) or false (F)
1. If B is a public base class of D, then D’s members cannot invoke public members functions of B.
2. An inheritance chain of any desired length is possible.
1. False
Explanation: With public inheritance, public members of the base class are public members of the derived class, protected members become protected members of the derived class but private members are private to the base class. The private members are inaccessible to any function except those declared in the base class (this includes friends).
2. True
Explanation: There is no reason to limit the length of an inheritance chain. There are software complexity arguments against very long inheritance chains that are beyond the scope of this text.
You might also like to view...
For which of the following purposes would you use Adobe Dreamweaver CC?
A. As a web design tool. B. To purchase a domain name. C. To arrange for server space. D. To add your website to search indexes.
Windows Server 2016 is the first Windows server operating system to include a full-fledged SNMP network management system application.
Answer the following statement true (T) or false (F)