Classical

Object Oriented Programming - Object Modelling

21:  

You overload an operator by naming it a

A.

variable

B.

built-in type

C.

function

D.

class

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



22:  
Assuming you have properly overloaded the ! operator for a Number class, and that a and b are two members of the Number class, which expression is legal?
A.

!a

B.

b!

C.

a!b

D.

All of these

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:





Suggest an improvement