class A
{
public:
int x;
};
int main()
{
A a1;
a1.x = 1000;
cout << a1.x << endl; // output: 1000
A a2 = a1;
/*-----------------------------------------------------------------------------
* What is the main difference between
* A a2(a1);
* and
* A a2 = a1;
*-----------------------------------------------------------------------------*/
a2.x+=200;
cout << a2.x << endl; // output: 1200
return 0;
}