![]() |
Java default parameter values
Some time ago I read about default parameter values, like
Code:
public blah(int a=0, int b=2) { ... }Ive searched google, but cant find anything. Am I doing it wrong, or is this not supported in java? |
I don't think you can use default argument values in Java but you can use overloading to achieve a similar effect.
ie. Code:
public int myMethod () |
Yea, I know. It's just that I have a Lot of parameters.
Thanks anyway. |
I've never known if it's possible to modify variables in method parameters
|
Quote:
|
| All times are GMT +1. The time now is 12:30 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.