Giang Phạm
New member
Which among the following is correct for the code given below?
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
Code:
class student
{
private: student()
{
}
public : student( int x)
{
marks =x;
}
};
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