#include <iostream>
using namespace std;
class Int{
private:
int x;
public:
void initialize1(){
x=0;
}
void initialize2(int a){
x=a;
}
void disp(){
cout<<x<<"\n";
}
};
int main()
{
Int i;
i.initialize1();
i.disp();
i.initialize2(45);
i.disp();
return 0;
}
Comments
Leave a comment