Home » C++ Programming » Constructors and Destructors

Which of the following statement is correct about the program given below? #include class Tab { int x; public: Tab(); ~Tab(); void Show() const; }; Tab::Tab() { x = 25; } void Tab::Show() const { cout<< x; } int main() { Tab objB; objB.Show(); return 0; }

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!