methods Flashcards
a program module that contains series of statements that carry out a task.
Method (to-do)
to execute a method.
- Calling method –
it provides the information about how other methods interact to each other.
Method header
Declaration
Method header
it contains the statements that carry out the work of the method.
Method body
- it is also called Implementation
Method Body
An empty method is called _____.
stub
describes the type of data the method sends back to its calling method.
Return type
A method that returns no data has a return type of ____.
void
can be any legal identifiers.
Identifier or Method Name
it might contain data to be sent to the method.
Parenthesis
data items you use in a calling method
Arguments
method that receives the data items
Parameters
- If a method receives a parameter, two additional items are required in the parenthesis:
parameter type & parameter identifier
the type of the method that is returned
Method’s type