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  Portföy oluşturmak ne demek?

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  What is the different type of constructor?

Leave a Reply

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