Classical

Object Oriented Programming - Object Modelling

36:  
Overloading without explicit arguments to an operator function called
A.

binary operator overloading

B.

unary operator overloading

C.

class allowing access to another class

D.

none of these

 
 

Option: B

Explanation :


37:  
Friend function should be declared in the ........ part of the class.
A.

public 

B.

private

C.

both (a) and (b)

D.

anywhere

 
 

Option: C

Explanation :


38:  

A friend function can be called

A.

by using object of the class

B.

directly

C.

should not be called

D.

like a normal function

 
 

Option: D

Explanation :


39:  

A constant member functions

A.

doesn't change data fields of the object

B.

can't be overloaded

C.

don't have return type

D.

have no arguments

 
 

Option: A

Explanation :


40:  

Static member functions

A.
can access only static members in the same class
B.
has only one copy of it exists for all instances of a class
C.

can access constant members.

D.

both (b) and (c)

 
 

Option: A

Explanation :




Suggest an improvement