#include< iostream >
using namespace std;
class add
{
int num 1, num2, sum;
public:
add()
{
cout << "\n Constructor without parameters ..";
num1=0;
num2=0;
sum =0:
}
add (int s1, int s2)
{
cout << "\nParameterized constructor ..";
num1 = s1;
num2=s2;
sum=0;
}
add (add &a)
{
cout << "\n Copy Constructor ...";
num1 = a.num1;
num2 = a.num2;
sum=0;
}
void getdatat)
{
cout<<"\nEnter data ...";
cin>>num1 >>num2;
}
void addition()
{
sum=num 1+num2;
}
void putdata()
{
cout << "\n The numbers are ..";
cout << num1<< '\t' << nurn2;
cout << "\n The sum of the numbers are .." << sum;
};
int main()
{
add a, b(10,20), c(b);
a.getdata();
a.addition();
b.addition();
c.addition();
cout << "\n Object a:";
a.putdata();
cout << "\n Obect b:";
a.putdata();
cout << "\n Obect c..";
c.putdata();
return 0;
}