Object Oriented Programming - Object Modelling - 2

136:  
Providing two or more constructors for the same class 
A.

requires different argument lists

B.

requires different constructor names

C.

requires different constructor types

D.

is illegal

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



137:  
The prototype for the constructor for a Student class is
Student (const int id Num = 0, const double gpa = 4.0); The definition Student Lynette (1, 2);
A.

defines a student with idNum 0 and gpa 4.0

B.

defines a student with idNum 0 and gpa 1.0

C.

defines a student with idNum 1 and gpa 2.0

D.

is illegal

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



138:  
The feature that allows to use the same function name for separate functions that have different argument lists is called
A.

overriding

B.

overloading

C.

constructing

D.

destructing

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



139:  
If you want to override constructor default values for an object you are instantiating, you must also override
A.

all other parameters to that constructor

B.

all parameters to the left of that value

C.

all parameters to the right of that value

D.

no other parameters to that constructor

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



140:  
If you omit any constructor argument when you instantiate an object, you must use default values
A.

for all parameters to the constructor

B.

for all parameters to the right of the argument

C.

for all parameters to the left of the argument

D.

for no other parameters.

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here: