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
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
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
Psychology,
12 days ago
Physics,
24 days ago
Math,
24 days ago
Biology,
7 months ago
Math,
7 months ago