1.

Which among the following is correct for the code given below? class student { private: student() { } public : student( int x) { marks =x; } };

A. The object can never be created
B. The object can be created without parameters
C. Only the object with only 1 parameter can be created
D. Only the object with some parameters can be created
Answer» D. Only the object with some parameters can be created


Discussion

No Comment Found