Programming Languages C++ Objective
Mar 21, 2013

Which of the following statements are correct?

Choose the correct answer:
A) Constructor is always called explicitly.
B) Constructor is called either implicitly or explicitly, whereas destructor is always called implicitly.
C) Destructor is always called explicitly.
D) Constructor and destructor functions are not called at all as they are always inline.
Detailed Explanation

Option B is the right answer.

Discussion (0)

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

Share Your Thoughts
Feedback