MCQOPTIONS
Bookmark
Saved Bookmarks
→
Object Oriented Programming
→
Inbuilt Classes in Object Oriented Programming
→
How many parameters must be passed if only the fol..
1.
How many parameters must be passed if only the following prototype is given to a constructor?
A.
;
B.
1
C.
2
D.
3
Answer» C. 2
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?
Which is the correct statement for default constructors?
If there is a constructor with all the default arguments and arguments are not passed then _________________
Which constructor definition will produce a compile time error?
Which constructor among the following will be called if a call is made like className(5,’a’);?
If the constructors are overloaded by using the default arguments, which problem may arise?
How many parameters must be passed if only the following prototype is given to a constructor?Prototype: className(int x, int y, int z=0);
Which is the correct syntax for using default arguments with the constructor?
Can a class have more than one function with all the default arguments?
Which among the following can be used in place of default constructor?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply