at:tutorial:objects
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
at:tutorial:objects [2007/06/29 08:11] – jorge | at:tutorial:objects [2007/06/29 08:14] – jorge | ||
---|---|---|---|
Line 12: | Line 12: | ||
def x := 0; | def x := 0; | ||
def y := 0; | def y := 0; | ||
- | def init(xCoord,yCoord) { | + | def init(aX,aY) { |
- | x := xCoord; | + | x := aX; |
- | y := yCoord; | + | y := aY; |
}; | }; | ||
def sumOfSquares() { x*x + y*y }; | def sumOfSquares() { x*x + y*y }; | ||
Line 34: | Line 34: | ||
</ | </ | ||
- | Every object understands the message '' | + | Every object understands the message '' |
===== Sending messages ===== | ===== Sending messages ===== |
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem