Home » C++ Programming » Constructors and Destructors

Which of the following constructor is used in the program given below? #include class CuriousTab { int x, y; public: CuriousTab(int xx = 10, int yy = 20 ) { x = xx; y = yy; } void Display() { cout<< x << " " << y << endl; } ~CuriousTab() { } }; int main() { CuriousTab objCuriousTab; objCuriousTab.Display(); return 0; }

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!