What is the difference between an implicit and explicit parameter?

From ggc

Jump to: navigation, search

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.





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter