Skip to content
Related Articles

Related Articles

Improve Article

C++ | Destructors | Question 3

  • Last Updated : 28 Jun, 2021
Geek Week

Like constructors, can there be more than one destructors in a class?
(A) Yes
(B) No


Answer: (B)

Explanation: There can be only one destructor in a class. Destructor’s signature is always ~ClassNam() and they can not be passed arguments.

Quiz of this Question

Take a step-up from those “Hello World” programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.
My Personal Notes arrow_drop_up
Recommended Articles
Page :