#include <iostream>
using namespace std;
class construct
{
int m;
public:
construct()
{
cout <<"Assign value of m"<<endl;
m=10;
}
void display ()
{
cout <<"return of m= "<<m;
}
};
int main() {
construct o;
o. display ();
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: