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