#include using namespace std ; class Demo { public: int x1 ; int x2 ; void initialize() { x1 = 5 ; x2 = 10 ; cout << "Inside the initialize method." << endl ; } }; int main() { Demo demo1Obj ; demo1Obj.initialize() ; cout << demo1Obj.x1 << " : " << demo1Obj.x2 << endl ; return(0) ; }