-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
8u77
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
Be able to instantiate default parameter values so that they may be left out on the method call. See: c++, c#
JUSTIFICATION :
It's a modern characteristic for languages. It saves code redundancy for method overloads, which makes projects more maintainable.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Assign a value to a parameter in the formals of a method definition. If the parameter is left out, the default value is assigned, and the parameter is still added to th symbol table. Non-assigned parameters act bormally
ACTUAL -
Covered above
---------- BEGIN SOURCE ----------
See other modern languages
---------- END SOURCE ----------
Be able to instantiate default parameter values so that they may be left out on the method call. See: c++, c#
JUSTIFICATION :
It's a modern characteristic for languages. It saves code redundancy for method overloads, which makes projects more maintainable.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Assign a value to a parameter in the formals of a method definition. If the parameter is left out, the default value is assigned, and the parameter is still added to th symbol table. Non-assigned parameters act bormally
ACTUAL -
Covered above
---------- BEGIN SOURCE ----------
See other modern languages
---------- END SOURCE ----------
- duplicates
-
JDK-4940463 Java lacks a default method argument facility
-
- Closed
-