More examples
Coordinate c1
Coordinate c3
Coordinate is a class. It�s like a type, except that you (the programmer) define it.
c1 and c3 are instances of the class; we call them objects
c1.x, c1.y, c3.x, c3.y are fields of objects c1 and c3 respectively.
x 3 y 4
Previous slide
Next slide
Back to first slide
View graphic version