Constructor Overloading in C++

Comments · 13 Views

Constructor Overloading in C++, Destructor in C

Constructor Overloading in C++, The process in which the same name is shared by two or more functions is referred to as function overloading. Similarly, when more than one constructor function is shared in a defined class, we will call it as constructor overloading.
Constructors could also be overloaded with other functions also. If you have both the types of constructors in your program
that is, default constructor as well as a parameterized constructor, then your constructor is said to be overloaded

 

Source: https://www.chlopadhe.com/constructor-overloading-in-c/

Comments