#include using namespace std ; class Demo { public: int x1 ; int x2 ; Demo(int x1P = 4, int x2P = 5) { x1 = x1P ; x2 = x2P ; cout << "Inside the construtor method." << endl ; } Demo() { cout << "Inside the default construtor." << endl ; } }; int main() { Demo demo1Obj( 4 , 6 ) ; Demo demo2Obj ; return 0 ; }