Method Definition
public void paint (Graphics g)
- “public” indicates that the method is accessible
- “void” indicates that the method will perform actions, but will NOT return any information.
- “paint” is the name of the method.
The method requires some information in order to run. This information is supplied by parameters.
- “(“ indicates the beginning of the parameter list.
- “Graphics” indicates a type of parameter given to the method.
- “g” is the name of a parameter of type Graphics
- “)” indicates the end of the parameter list