1.

Abstract classes can ____________________ instances.(a) Never have(b) Always have(c) Have array of(d) Have pointer ofThis question was posed to me during an interview.I would like to ask this question from Abstract Class topic in portion Classes of Object Oriented Programming

Answer»

The correct choice is (a) Never have

The best I can EXPLAIN: When an abstract class is defined, it won’t be having the implementation of at least ONE FUNCTION. This will restrict the class to have any constructor. When the class doesn’t have constructor, there won’t be any INSTANCE of that class.



Discussion

No Comment Found

Related InterviewSolutions