User Tools

Site Tools


at:tutorial:objects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
at:tutorial:objects [2007/06/29 14:49] jorgeat:tutorial:objects [2007/06/29 14:58] jorge
Line 94: Line 94:
  
 ===== Encapsulation ===== ===== Encapsulation =====
-In AmbientTalk, all fields and methods are "public" via selection. Still, a field or method can be made "private" by means of lexical scoping. The following code shows the definition of an object inside the definition of a function. As such, the fields and methods of this object cannot be accessed directly from outside the funuction.+In AmbientTalk, all fields and methods are "public" via selection. Still, a field or method can be made "private" by means of lexical scoping. The following code shows the definition of an object inside the definition of a function. The fields and methods of this object cannot be accessed directly from outside the funuction.
  
 <code> <code>
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem