Object Oriented Programming - Object Modelling - 2

91:  

When  a derived class and instantiate create on object

A.

parent class object must be constructed first

B.

child class object must be constructed first 

C.

parent class object must not be constructed

D.

child class object must not be constructed.

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



92:  

 A class hierarchy

A.

describes "is a" kind of relationships

B.

describes "has a" relationships

C.

shows same relationships as an organization chart.

D.

shows same relationships as a family tree.

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



93:  
A class D can be derived from a class C, which is derived from a Class B, which is derived from a class A.
A.

True

B.

False

C.
D.
 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



94:  
Assume a class Derv that is privately derived from class Base. An object of class Derv located in main () can access
A.

public members of Base

B.

protected members of Base

C.

private members of Base

D.

public members of Derv.

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



95:  

The scope-resolution operator usually

A.

specifies a particular class

B.

resolves ambiguities

C.

both (a) and (b)

D.

none of these

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: