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.

Sizin İçin Seçtik  What is the purpose of a constructor in C++ a class?

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Sizin İçin Seçtik  Is there a Contains function in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *