#include < iostream.h >
using namespace std;
class A
{
public:
int x;
A(){ x=0;}
A(int a) // parameterized constructor.
{
x=a;
}
A(A &i) // copy constructor
{
x = i.x;
}
};
int main()
{
A a1(20); // Calling the parameterized constructor.
A a2(a1); // Calling the copy constructor.
cout<< a2.x;
return 0;
}