Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> hi, You cannot directly specify an optional argument in the method signature. However, you can overload the method with two different signatures, that will effectively do the same thing. For example: public void foo(int iVar) { public void foo(int iVar, boolean flag) {
Replies: |
Sponsored Links
|