Computer Science, asked by hello22345, 2 months ago

explain constructor overloading with a small program​

Answers

Answered by guptakhushal408
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 olamideolajuyi19
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