1.

Which of these is correct way of calling a constructor having no parameters, of superclass A by subclass B?(a) super(void);(b) superclass.();(c) super.A();(d) super();I had been asked this question during an interview for a job.My question is from Method overriding topic in chapter Inheritance of Java

Answer» RIGHT answer is (d) SUPER();

BEST explanation: NONE.


Discussion

No Comment Found

Related InterviewSolutions