Method calls
Suppose we want to call some of the methods of class Coordinate
Use object name followed by a dot �.� followed by method name:
c.setX(3); // x field of c becomes 9
a = c.sumSquares(); // a becomes . . . 81?
Previous slide
Next slide
Back to first slide
View graphic version