InterviewSolution
Saved Bookmarks
| 1. |
If class A has two nested classes B and C. Class D has one nested class E, and have inherited class A. If E inherits B and C, then ________________(a) It shows multiple inheritance(b) It shows hierarchical inheritance(c) It shows multiple inheritance(d) Multiple inheritance among nested classes, and single level for enclosing classesThis question was posed to me during an online interview.This interesting question is from Types of Inheritance topic in section Inheritance & its Types of Object Oriented Programming |
|
Answer» Correct option is (d) MULTIPLE INHERITANCE among NESTED CLASSES, and single level for enclosing classes |
|