Nguyễn Thanh Uyên
New member
Which among the following is true for the code given below?
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
Code:
class A
{
private : int marks; char name[20];
public :
A(int x=100)
{
marks=x;
}
};
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