Computer Science, asked by KateElizondoJanito, 3 months ago

How do you add 3 constructors and destructor in one program in C++?

My program says I wasn't allowed to add multiple constructors??​

Answers

Answered by gs0748229
1

Answer:

In C++, We can have more than one constructor in a class with same name, as long as each has a different list of arguments. This concept is known as Constructor Overloading and is quite similar to function overloading.

Hope it is helpful to you

Mark me as brainlist

Answered by ps6337567
1

Answer:

C++, We can have more than one constructor in a class with same name, as long as each has a different list of arguments. This concept is known as Constructor Overloading and is quite similar to function overloading.

Similar questions