Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 3 (Q.No. 19)
19.
If you omit any constructor argument when you instantiate an object, you must use default values______
for all parameters to the constructor
for all parameters to the right of the argument
for all parameters to the left of the argument
for no other parameters
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Avinash said:   1 year ago
Default parameters always start from right side of parameter list.

Order to set a default left to right.

Ayesha... said:   3 years ago
When you omit parameters from a function call, values can be provided by default parameters.

If you assign a default value to any variable in a function prototype's parameter list, then all parameters to the right of that variable must have default values.

And If you omit any constructor argument when you instantiate an object, you must use default values for all parameters to the right of the argument.

Post your comments here:

Your comments will be displayed after verification.