> public class PowerSupply
> {
[quoted text clipped - 20 lines]
>
> please explain...how this output coming ?
JLS states that the when selecting between overloaded methods, the "most
specific" method will always be chosen. They then go into great lengths
defining "most specific". Informally, any parameter that could be passed
into the first constructor (String voltage) could also be passed into the
second constructor (Object voltage), but not the other way around, so the
first constructor is "more specific" than the second one.
- Oliver
gk - 14 Sep 2006 15:30 GMT
thanks ...this helps
> > public class PowerSupply
> > {
[quoted text clipped - 29 lines]
>
> - Oliver