'explicit parameter'에 해당되는 글 1건

  1. 2009.04.29 Java Implicit and Explicit parameters
2009.04.29 22:16

Java Implicit and Explicit parameters

Parameter (explicit parameter): Input to a method. Not all methods have explicit parameters.
System.out.println(greeting) // explicit parameter is greeting
greeting.length() // has no explicit parameter

Implicit parameter: The object on which a method is invoked
System.out.println(greeting) // implicit parameter is System.out

[출처] http://akira.ruc.dk/~mir/csa2007s/slide-2-18.html

Trackback 0 Comment 0