

MCQOPTIONS
Saved Bookmarks
1. |
Which among the following is true for the code given below? class A { private : int marks; char name[20]; public : A(int x=100) { marks=x; } }; |
A. | Objects can be created with one parameter or without parameter |
B. | Object can be created only with one parameter |
C. | Object can be created with more than one parameter |
D. | Objects can be create only without parameter |
Answer» B. Object can be created only with one parameter | |