1.

How many abstract classes can a single program contain?(a) At most 1(b) At least 1(c) At most 127(d) As many as requiredThe question was posed to me in class test.Query is from Abstract Class in division Classes of Object Oriented Programming

Answer»

The correct answer is (d) As many as REQUIRED

Easiest explanation - There is no restriction on the NUMBER of ABSTRACT classes that can be defined inside a SINGLE program. The programs can use as many abstract classes as required. But the functions with no BODY must be implemented.



Discussion

No Comment Found

Related InterviewSolutions