 |
 |
 |
 |
 |
 |
 |
 |
 |
[<modifier(s)>]
<type> <name>
|
|
|
([parameters])
{…}
|
|
|
declares a method (here […] means
optional, as
|
|
|
usual)
|
|
|
{…} is the method code, <modifiers>
and
|
|
|
<type>
are of the return value when method is a
|
|
function,
<name> is the method name
|
|
|
Any group of
statements {…} are one or more
|
|
|
statements,
each ending with ;
|
|