#include<iostream.h>
#include<conio.h>
class oper
{
int x,y;
public:
oper()
{
}
oper(int l,int l1)
{
x=l;
y=l1;
}
void show()
{
cout<<"\nx="<<x;
cout<<"\ny="<<y;
}
oper operator+(oper b);
};
oper oper::operator+(oper b)
{
oper t;
t.x=b.x+x;
t.y=b.y+y;
return t;
}
void main()
{
clrscr();
oper ob1(12,23);
oper ob2(12,56);
ob1.show();
ob2.show();
ob1=ob1+ob2;
ob1.show();
getch();
}