Programming Languages C++ Objective
Mar 20, 2013

Which of the following statement is correct?

 

Choose the correct answer:
A) Constructor has the same name as that of the class.
B) Destructor has the same name as that of the class with a tilde symbol at the beginning.
C) Both A and B.
D) Destructor has the same name as the first member function of the class. Answer & Explanation
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback