Q:

How destructors are different from a normal member function in c++

0

How destructors are different from a normal member function

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

The name of the destructors must be the same as the class name preceded by a tilde (~). Also, destructors don’t take any argument and don’t return anything.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions and Answers(2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the difference between constructor and des... >>
<< Should I explicitly call a destructor on a local v...