0

What is Constructor Overloading?

Is it comparable to function Overloading?can we use them to deal with large number of data like collection of student data like marks, roll. No., name etc....?

19th Jul 2017, 12:50 PM
Sai Yerni Akhil
Sai Yerni Akhil - avatar
1 Resposta
+ 2
You define more than one constructor for the class. Depending on what you pass into the constructor when you call it will determine which constructor is called. Just like over loading functions.
19th Jul 2017, 1:34 PM
Arthur Tripp
Arthur Tripp - avatar