C++ | Destructors | Question 1

Can destuctors be private in C++?
(A) Yes
(B) No


Answer: (A)

Explanation:

Destructors can be private. See Private Destructor for examples and uses of private destructors in C++.


Quiz of this Question




My Personal Notes arrow_drop_up
Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.