Object Oriented Programming - Object Modelling - 2

16:  

The keyword virtual indicates that

A.

a derived class has public access to a base class

B.

more than one base class exists

C.
a base class should be used only once in inheritance
D.
a derived class should have more than one base class constructed
 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



17:  
A class's inherited access is overrided to make an individual member's access, more
A.

liberal

B.

conservative

C.

either (a) or (b)

D.

none of these

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



18:  

The class specifier for

A.

public members

B.

public and protected members

C.

any specific class members you choose

D.

no class members

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



19:  
If class P is a parent to child class C, and C inherits with public access, P's function F() can be made private with which statements?
A.

Private:: P ::F();

B.

private: P::F;

C.

private : C :: F();

D.

private : C :: F;

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



20:  

Reference variables and const class members

A.

must be assigned values in any derived class

B.

must never be initialized in a base class

C.
must be initialized, rather than assigned values
D.

must not exist if a class is to be a base class.

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: