Object Oriented Programming - Object Modelling - 2

121:  
Which of the following tells c++ that the display Breed function is a member of the animal class?
A.

animal "dog";

B.

display Breed () :: animal

C.

display Breed ().animal

D.

animal :: display Breed ().

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



122:  

A pattern for creating an object is called a(n)

A.

class

B.

attributes

C.

private

D.

public

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



123:  
Which of the following is the scope resolution operator?
A.

- >>

B.

::

C.

*

D.

________

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



124:  
The constructor's prototype is in which section of the class?
A.

Confidential

B.

Hidden

C.

Public

D.

private

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



125:  

The default access specifier is

A.

shielded

B.

private

C.

protected

D.

public

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here: