Initialize object with its previous object

Write a program to initialize one object with another object(previous object).

#include<iostream>
using namespace std;
int m,n;
class A
{
	private:
		int x,y;
	public:
		static int count;
		A()
		{
			++count;
			if(count == 1)
			{
				x = 10,y = 20;
				m = x, n = y;
			}
			else
			{
				x = m, y = n;
			}
			cout << "default constructor" << endl;
		}
		A(int z,int t):x(z),y(t)
		{
			m = z,n = t;
			cout << "parameterized constructor" << endl;
		}
		void print()
		{
			cout << "x = " << x << " y = " << y << endl;
		}
		~A()
		{
			cout << "destructor" << endl;
		}
};
int A :: count = 0;
int main()
{
	A obj1,obj2,obj3(22,55),obj4;
	obj1.print();
	obj2.print();
	obj3.print();
	obj4.print();
	A obj5 = obj4;
	obj4.print();
	return 0;
}

Output

default constructor
default constructor
parameterized constructor
default constructor
x = 10 y = 20
x = 10 y = 20
x = 22 y = 55
x = 22 y = 55
x = 22 y = 55
destructor
destructor
destructor
destructor
destructor