C++ Inheritance MCQs in Java Questions & Answers - 3

Question: 11

The class from which the other classes are derived is called as ____

(A) Objects

(B) Functions

(C) Sub-class

(D) Object class

Ans: B

Functions

Question: 12

The symbol that must be used between derived and base class is ___

(A) &

(B) :

(C) ::

(D) #

Ans: B

:

Question: 13

Which is the base class of the class heavy_vehicle?

(A) Bus

(B) Heavy_vehicle

(C) Vehicle

(D) Both (a) and (c)

Ans: C

Vehicle

Related Questions