InterviewSolution
Saved Bookmarks
| 1. |
Can abstract classes be used in multilevel inheritance?(a) Yes, always(b) Yes, only one abstract class(c) No, abstract class doesn’t have constructors(d) No, neverThis question was posed to me during an online interview.I want to ask this question from Multilevel Inheritance in section Inheritance & its Types of Object Oriented Programming |
|
Answer» RIGHT OPTION is (a) Yes, always For explanation: The abstract classes can always be used in MULTILEVEL inheritance. The only condition that may arise is that all the UNDEFINED functions must be defined in subclasses. There must not be any undefined function. |
|