Object Oriented Programming - Object Modelling - 2

81:  

When a class serves as a base class to others,

A.

all of its members are inherited

B.
all of its members are inherited, except for any protected members
C.
all of its members are inherited, except for any protected members
D.
None of its members is inherited unless specifically listed
 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



82:  
When a new class is derived from an existing class, the derived class member functions ............ have names that differ from base class function names. 
A.

may

B.

may if the two classes have the same

C.

must

D.

must not

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



83:  
When you instantiate a derived class object, a constructor for the derived class is
A.

not called

B.

called prior to the base class constructor

C.
called simultaneously with the base class constructor
D.

none of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



84:  

Static variables are sometimes called

A.

class variables

B.

functional variables

C.

dynamic variables

D.

auto variables

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



85:  
When the compiler cannot differentiate between two overloaded constructors, they are called
A.

overloaded

B.

destructed

C.

ambiguous

D.

dubious

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: