

MCQOPTIONS
Saved Bookmarks
1. |
Which option is false for the following code? class A { private : int sum(int x, int y) { return x+y; } public: A() { } A(int x, int y) { cout<<sum(x,y); } }; |
A. | Constructor can be created with zero argument |
B. | Constructor prints sum, if two parameters are passed with object creation |
C. | Constructor will give error if float values are passed |
D. | Constructor will take 0 as default value of parameters if not passed |
Answer» E. | |