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  Yitirmek kelimesinin eş anlamlısı nedir?

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  Why is event emitter used?

Leave a Reply

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