CClass obj; //вызываем первый конструктор
obj = 1; // оператор присваивания
CClass obj2 = obj; // Конструктор копирования
#include <iostream>
using namespace std;
class A
{
int myint;
public:
A():myint(0)
{
cout<< this << " A():myint(0) myint == "<<myint<<endl;
}
A(int i):myint(i)
{
cout<< this << " A(int i):myint(i) myint == "<<myint<<endl;
}
~A()
{
cout<< this << " delete A()"<<endl;
}
};
int main()
{
A a;
a = 2;
return 0;
}