#include <iostream>
using namespace std;
class sample
{
int a, b;
public :
sample (int x, int y)
{
c=x+y;
}
void display ()
{
cout <<c<<endl;
}
};
int main() {
sample e(10,10);
e.diplay();
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: