Answer: No, we cannot overload a destructor of a class in C++ programming . Only one empty destructor per class should be there. It must have a void parameter list. Destructor in C++ neither takes any parameters nor does it return anything.
Is constructor overloading possible if yes then explain and if no then why?
Answer: No, we cannot overload a destructor of a class in C++ programming . Only one empty destructor per class should be there. It must have a void parameter list. Destructor in C++ neither takes any parameters nor does it return anything.