Object Oriented Programming - Object Modelling - 2

51:  
To hide a data member from the program, you must declare the data member in the .......... . section of the class.
A.

concealed

B.

confidential

C.

hidden

D.

private

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



52:  
To expose a data member to the program, the data member must be declared in the which section of the class?
A.

common

B.

exposed

C.

public

D.

Unrestricted

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



53:  

The best-written classes have

A.

all functions private

B.

all data public

C.

no functions

D.

none of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



54:  

Access specifiers are followed by

A.

a comma

B.

methods

C.

both (a) and (b)

D.

none of these

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



55:  

Classes hold

A.

data

B.

methods

C.

both (a) and (b)

D.

none of these

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: