#include <iostream>
using namespace std;
class additon {
public:
int a,b;
additon(int x,int y){
a=x;
b=y;
}
additon(additon &obj){
a = obj.a;
b= obj.b;
// cout<<a+b;
}
void display(){
cout<<"The addition of a and b is :- "<<a+b<<endl;
}
};
int main() {
cout << "Hello world!" << endl;
additon a1(56,77);
additon a2= a1;
a1.display();
a2.display();
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: