When you defined a class with nothing in it, the compiler will defined which function(s) for you ?
class A{ }1 constructor with non parameter A();
2 copy constructor : A(const A & a);
3 destructor ~A();
4 copy assignment : A& operator = (const A & a);
No comments:
Post a Comment