Advantages of Constructor Overloading
I am very new to Java and trying to learn the subject, having previous
programming exposure in only HTML/CSS. I have started with Herbert Schildt
and progressed through a few pages.
I am unable to understand the exact advantages of Constructor Overloading.
Isn't it easier to Overload Methods using single constructor for
flexibility? Moreover if I am trying to use constructor overloading to use
one object to initialize another, there are simpler ways to do it! So what
are the benefits and in which situation should I use Constructor
Overloading.
No comments:
Post a Comment