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______
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.
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.
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers