Classical

Object Oriented Programming - Object Modelling

46:  
Static class member's definitions and intializations occur
A.

inside the class

B.

inside the objects of the class

C.

outside the class and function bodies

D.

anywhere

 
 

Option: C

Explanation :


47:  

Function overloading done at

A.

run-time

B.

compile time

C.

linking time

D.

none of these

 
 

Option: B

Explanation :


48:  

Protected members are accessible to

A.

members of its own class only

B.

to the members of derived class

C.

both (a) and (b)

D.

are not accessible outside the class.

 
 

Option: C

Explanation :


49:  

A derived class

A.
inherits data members and member functions from base class.
B.

inherits constructors and destructors.

C.
object can access protected members with the dot operator. 
D.

both (a) and (b)

 
 

Option: A

Explanation :


50:  
Consider the following statements
Statement 1 : Constructor of a base class executed first and then constructed of derived class.
Statement 2 : If the base class has constructors with arguments then it's not necessary for the derived class to
have constructor.
Statement 3 : If the base class do not have default constructor, they must be explicitly invoked.
Statement 4 : Virtual base class constuctor should be invoked first and then orderly invocation of constructors.
Statement 5 : The derived class need not have a constructor as long as base class has a no-argument constructor.
 
Of these, correct statements are
A.

1,2,3

B.

1,2,4,5

C.

1,3,4,5

D.

All of these

 
 

Option: C

Explanation :




Suggest an improvement