1.

Which of the following is used for implementing inheritance through class?(a) inherited(b) using(c) extends(d) implementsI have been asked this question during an internship interview.I would like to ask this question from Inheritance topic in portion Inheritance of Java

Answer»

The CORRECT OPTION is (c) extends

For explanation: CLASS can be extended USING extends keyword. One class can extend only one class. A FINAL class cannot be extended.



Discussion

No Comment Found

Related InterviewSolutions