Java_PPT_ch03-1
Java_PPT_ch03-1
Method
Program module
Contains series of statements
Carries out task
Execute method
Invoke or call from another method
Calling method (client method)
Makes method call
Called method
Invoked by calling method
Method body
Between a pair of curly braces
Contains the statements that carry out the work
Also called implementation
Method declaration
Optional access specifiers
Return type for method
Method name
Set of parentheses
Might contain data to be sent to the method
Method’s type
Method’s return type