C++ | Destructors | Question 3

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

GATE CS Corner    Company Wise Coding Practice

Recommended Posts:



0 Average Difficulty : 0/5.0
No votes yet.