#include <iostream.h>
class string
{
int x;
public:
string(){}
string(int x)
{
this->x=x;
}
void operator+=(string s)
{
x+=s.x
}
void disp()
{
cout<<"x="<<x<<endl;
}
};
void main()
{
string s1(6),s2(9);
s1+=s2;
s1.disp;
}
class string
{
int x;
public:
string(){}
string(int x)
{
this->x=x;
}
void operator+=(string s)
{
x+=s.x
}
void disp()
{
cout<<"x="<<x<<endl;
}
};
void main()
{
string s1(6),s2(9);
s1+=s2;
s1.disp;
}