Object Oriented Programming - Object Modelling - 2

96:  

Advantages of inheritance include

A.

facilitating class libraries

B.

avoiding the rewriting of code

C.

providing a useful conceptual framework

D.

all of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



97:  

A derived class may also be called

A.

sub class

B.

super class

C.

parent class

D.

derived class

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



98:  
A derived class ........ override attributes of a parent class.
A.

may

B.

may if the two classes have same name

C.

must

D.

must not

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



99:  
If you omit any constructor argument when you instantiate an object, you must use default values
A.

for all parameters to the constructor

B.

for all parameters to the right of the argument

C.

for all parameters to the left of the argument

D.

for no other parameters.

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



100:  
If you omit any constructor argument when you instantiate an object, you must use default values
A.

for all parameters to the constructor

B.

for all parameters to the right of the argument

C.

for all parameters to the left of the argument

D.

for no other parameters.

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here: