Method Definition : Syntax
return_type method_name (parameter_list)
{
statements
}
1. return type,
2. method_name to call it by
3. parameter list
There is one more detail called “access control or visibility modifiers” associated with methods. We will discuss it later.
Previous slide
Next slide
Back to first slide
View graphic version