1.

Which of the following is used for implementing inheritance through an interface?(a) inherited(b) using(c) extends(d) implementsI got this question in an internship interview.This question is from Inheritance in division Inheritance of Java

Answer»

Correct answer is (d) implements

To elaborate: INTERFACE is implemented USING implements KEYWORD. A concrete CLASS must implement all the METHODS of an interface, else it must be declared abstract.



Discussion

No Comment Found

Related InterviewSolutions