Q:

Why a class has only one destructor in c++?

0

Why a class has only one destructor?

All Answers

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

Answer:

A destructor doesn’t have parameters, so there can be only one.

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

total answers (1)

C++ Interview Questions For Experienced

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Can we have a virtual destructor in C++?... >>
<< When do we need to write a user-defined destructor...