explain constructor overloading with a small program
Answers
Answered by
0
Explanation:
Constructor Overloading in C++
This concept is known as Constructor Overloading and is quite similar to function overloading. ... A constructor is called depending upon the number and type of arguments passed. While creating the object, arguments must be passed to let compiler know, which constructor needs to be called.
Answered by
0
Explanation:
In Java, we can overload constructors like methods. The constructor overloading can be defined as the concept of having more than one constructor with different parameters so that every constructor can perform a different task.
Attachments:

Similar questions
Math,
1 month ago
CBSE BOARD XII,
1 month ago
English,
1 month ago
Science,
2 months ago
Math,
11 months ago
English,
11 months ago
World Languages,
11 months ago