mcq the special syntax for invoking a constructor of the base class is: a)super() b)base()...

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

Upload: cameron-wiggins

Post on 31-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

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

1

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();

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

2

MCQ

A method in a subclass is said to _____________ an inherited method if it has the same method declarations as the inherited method.a) copyb) overloadc) Canceld) hidee) override

Correct Answer = E

override

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

3

MCQ

The keyword ___________ is used in the class declaration of a subclass to indicate its’ superclass.

a) Inheritsb) Extendsc) Implementsd) super

Correct Answer = b

extends