at:tutorial:objects
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
at:tutorial:objects [2007/07/02 13:12] – jorge | at:tutorial:objects [2007/07/02 13:18] – jorge | ||
---|---|---|---|
Line 101: | Line 101: | ||
===== First-class delegation ===== | ===== First-class delegation ===== | ||
- | AmbientTalk provides an explicit delegation operator '' | + | AmbientTalk provides an explicit delegation operator '' |
< | < | ||
- | > def Point3D | + | > def point3D |
def z := 0; | def z := 0; | ||
- | def init(anX, aY, aZ) { | + | def init(aX, aY, aZ) { |
- | super^init(anX, aY); | + | super^init(aX, aY); |
z := aZ; | z := aZ; | ||
- | } | + | }; |
} | } | ||
</ | </ | ||
+ | |||
+ | |||
===== Encapsulation ===== | ===== Encapsulation ===== |
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem