First page Back Continue Last page Graphics
Java Messages
Two forms:
- <receiver>.<method-name>(<parameter list>)
- <receiver>.<variable-name>
<receiver> can be:
- a variable: c.setValue(4)
- indexed array expression: myArray[i].setValue(4)
- any expression that evaluates to an object: System.out.println("...")
- a class name: BorderLayout.NORTH
- the last usage is usually in connection with static class variables