Answer the following questions true (T) or false (F)
1. If B is a base class of D, then D’s members cannot access the private data members of B without regard to the kind of inheritance.
2. If B is a base class of D, then D’s members cannot invoke private member functions of B without regard to the kind of inheritance.
1. True
Explanation: With any kind of derivation, public, protected or private, private function and data members of the base class are inaccessible to any function not declare in the base class.
2. True
Explanation: With any kind of derivation, public, protected or private, private function and data members, of the base class are inaccessible to any function not declare in the base class.
You might also like to view...
Arithmetic operators are used to tell Calc what mathematical calculations to perform
Indicate whether the statement is true or false
Siri, the personal assistant app on the Apple iOS operating system, is an example of _______ recognition software.
Fill in the blank(s) with the appropriate word(s).