Professional Documents
Culture Documents
Implementasi Algoritma
Method
2
3
What is a Function?
4
Function Definition
Function Call
Parameter 1
(5) Method
(Sum) Return
(11)
Parameter 2
(6)
7
• Local variables and method parameters are defined within a method. They’re
accessible only in the method that defines them.
• The scope of a variable specifies its life span. If the scope of a variable is
limited to a method, its life span is also limited to that method.
Latihan
Referensi
• Java Programming Basics
https://www.udacity.com/course/ud282