#include using namespace std ; class Demo { public: int x1 ; int x2 ; Demo() { x1 = 5 ; x2 = 10 ; cout << "Inside the initialize method." << endl ; } }; int main() { cout << "Before creating the object." << endl ; Demo* demo1Obj ; demo1Obj = new Demo() ; cout << "After creating the object." << endl ; cout << demo1Obj->x1 << " : " << demo1Obj->x2 << endl ; delete demo1Obj ; return 0 ; }