#include <iostream>
using namespace std;
class A {
int i;
public:
A() {
cout << "in A::A()" << endl;
i = 0;
}
A operator = (A a) {
cout << "in A::operator=(A)" << endl;
i = a.i;
}
};
int main() {
A a;
A b = a;
return 0;
}
Login in to like
Login in to comment