Object Oriented Programming - Object Modelling - 2

31:  

Most common operation used in constructors is

A.

addition

B.

overloading

C.

assignment

D.

polymorphism

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



32:  

Reference variables and const class member

A.

must be asigned 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 exit if a class is to be a base class.

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



33:  
If no -constructors can be specified for a derived class, objects of the derived class will use the constructors in the base class.
A.

True

B.

False

C.
D.
 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



34:  

Adding a derived class to a base class requires fundamental changes to the base class.

A.

True

B.

False

C.
D.
 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



35:  

A major advantage of inheritance is

A.

reducing the time it takes to create new objects

B.
not having to think about how objects will be used
C.
reducing the amount of memory required to execute a program
D.
enabling people who have not studied programming to create useful applications.
 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here: