Saved Bookmarks
| 1. |
Deriving a class in such a way that that the base class members are not available for further inheritance is known as ___________________(a) Public inheritance(b) Protected inheritance(c) Protected or private inheritance(d) Private inheritance |
|
Answer» The correct option is (d) Private inheritance Explanation: The private members of a class can never be derived to another class. When a class derives another class using private inheritance, all the members become private members of the derived class. Hence these member won’t be available for further inheritance. |
|