What is the advantage of constructor overloading in C++?

Answer: Benefits of constructor overloading in C++ is that, it gives the flexibility of creating multiple type of objects of a class by having more number of constructors in a class , called constructor overloading. In fact, it is similar to C++ function overloading that is also know as compile time polymorphism.

Sizin İçin Seçtik  OHAL Cumhurbaşkanlığı kararnamesi asli düzenleme aracı mıdır?

Leave a Reply

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

What is the advantage of constructor overloading in C++?

Answer: Benefits of constructor overloading in C++ is that, it gives the flexibility of creating multiple type of objects of a class by having more number of constructors in a class , called constructor overloading. In fact, it is similar to C++ function overloading that is also know as compile time polymorphism.

Sizin İçin Seçtik  Does Java support overloading and overriding?

Leave a Reply

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