MCQ The special syntax for invoking a constructor of the base class is: a) super() b) base() c) parent() d) child() Correct Answer = A super();

Download Report

Transcript MCQ The special syntax for invoking a constructor of the base class is: a) super() b) base() c) parent() d) child() Correct Answer = A super();

MCQ
The special syntax for invoking a constructor of the base class is:
a) super()
b) base()
c) parent()
d) child()
Correct Answer = A
super();
1
MCQ
A method in a subclass is said to _____________ an inherited method
if it has the same method declarations as the inherited method.
a) copy
b) overload
Correct Answer = E
c) Cancel
override
d) hide
e) override
2
MCQ
The keyword ___________ is used in the class declaration of a subclass
to indicate its’ superclass.
a)
b)
c)
d)
Inherits
Extends
Implements
super
Correct Answer = b
extends
3