Home » C++ Programming » Constructors and Destructors

Which of the following statement is correct about the program given below? #include class CuriousTab { int x; public: CuriousTab(short ss) { cout<< "Short" << endl; } CuriousTab(int xx) { cout<< "Int" << endl; } CuriousTab(float ff) { cout<< "Float" << endl; } ~CuriousTab() { cout<< "Final"; } }; int main() { CuriousTab *ptr = new CuriousTab('B'); return 0; }

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!