Computer Science, asked by ayush020702, 1 year ago

what is the difference between constructor overloading and function overloading

Answers

Answered by Reyansh05
11
hey mate.......


Constructor Overloading:-

constructor is used for initialization of instance variable . Constructor are invoked when the object was created and the values are passed in that.constructor overloading means that different variable for multiple objects.One object can use only one constructor

Function Overloading : It can be defined as Using same Function name but calling it using different parameters.


pls mark brainlist answer
Answered by Anonymous
4

Answer:

The only difference between constructor overloading and function overloading is that an overloaded constructor cannot return a value while an overloaded function can

Similar questions