A
asdf
May I change the value of data members of an object by using the
constructor?
struct A
{
int x;
default y;
}
int main()
{
A aobj;
}
aobj is an object of the class A, and I want to change the values of x
and y of the aobj, how can I do? Thanks.
constructor?
struct A
{
int x;
default y;
}
int main()
{
A aobj;
}
aobj is an object of the class A, and I want to change the values of x
and y of the aobj, how can I do? Thanks.