What is the difference between an implicit and explicit parameter?
From ggc
An implicit parameter is the object on which the method is invoked. An explicit parameter is the parameter of the method other than the object the method invokes and is enclosed in parentheses. For example, in momsSavings.deposit(500); the implicit parameter is momsSavings and the explicit parameter is 500. The implicit parameter in a method doesn't have a name and there is always one (except static methods) and a method can have any number of explicit parameters.
- This page was last modified on 25 August 2008, at 00:00.
- This page has been accessed 1,001 times.
- Privacy policy
- About ggc
- Disclaimers
- Powered by MediaWiki!









