| Author |
Overloading doubt
|
ketan khairnar
Greenhorn
Joined: Dec 21, 2004
Posts: 15
|
|
|
Why it is necessary(must) for arguments to differ?
|
 |
Kris Reid
Ranch Hand
Joined: Jan 05, 2005
Posts: 247
|
|
overloading example public void methodA(int a) {} public void methodA(int a, int b) {} they need to have different signatures so it knows which to call. if they where public void methodA(int a) {} public int methodA(int a) {} how the compiler know which method you are after? Hope that makes sense
|
 |
 |
|
|
subject: Overloading doubt
|
|
|