Classical

Object Oriented Programming - Object Modelling

66:  
A pointer to a base class type can be refer to an object of a derived class type, this is called
A.

inheritance

B.

memory addressing

C.

polymorphism

D.

encapsulation

 
 

Option: C

Explanation :


67:  
Which of the following class constructor will invoked first?
A.

Base class

B.

Virtual base class

C.

Abstract class

D.

Derived class

 
 

Option: B

Explanation :


68:  
All the public members of a base class becomes protectedc member of the derived class. This happen in
A.

Virtual inheritance

B.

Protected inheritance

C.

Private inheritance

D.

Public inheritance

 
 

Option: B

Explanation :


69:  

The scope of the derived class is within

A.

global scope

B.

local scope

C.

in the immediate base classes

D.

in the abstract class

 
 

Option: C

Explanation :


70:  
A single subobject is inherited regardless how many times the base class occurs within the class derivation, in
A.

virtual inheritance

B.

multiple inheritance

C.

public inheritance

D.

none of these

 
 

Option: A

Explanation :




Suggest an improvement