1.

If super class and subclass have same variable name, which keyword should be used to use super class?(a) super(b) this(c) upper(d) classname

Answer» Correct answer is (a) super

For explanation I would say: Super keyword is used to access hidden super class variable in subclass.


Discussion

No Comment Found

Related InterviewSolutions