4
votes
Backward Compatibility using Defalt Parameters
Let's Get Technical
– When a function, procedure, or method requires at least one parameter, the final (right-most) parameters in the parameter list can be declared to have a default value. When the parameters declared to have a default value are omitted during the invocation of the subroutine, the default values are assigned to the corresponding formal parameters.While this feature is interesting by itself, there is another use for this feature that permits you to extend an existing method without breaking older versions.The best way to explain this trick is with an example. Imaging that you have a method you call ...
Statistics
|
Visits by Source |
User Actions |




