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