1.

The abstract classes in java can _________________(a) Implement constructors(b) Can’t implement constructor(c) Can implement only unimplemented methods(d) Can’t implement any type of constructorI got this question by my college professor while I was bunking the class.My question comes from Abstract Class in chapter Classes of Object Oriented Programming

Answer»

The correct option is (a) Implement constructors

The best explanation: The abstract CLASSES in java can DEFINE a constructor. EVEN though instance can’t be created. But in this WAY, only during constructor CHAINING, constructor can be called. When instance of concrete implementation class is created, it’s known as constructor chaining.



Discussion

No Comment Found

Related InterviewSolutions