Tutorial by Examples

The most common way to add (and edit classes) in from the system browser In the Nautilus system browser have nothing selected or select a package (first column) or a class (second column). Depending on the selection, the code editor will display a slightly different class template: SelectionTemplat...
In Pharo everything is an object, and every object responds to messages. So if you evaluate the following code Object subclass: #MyClass the object Object will create for you its subclass called MyClass. If you don't have any particular superclass in your mind it's advised to subclass from Objec...
You can create classes without names that are not installed in the system by sending newAnonymousSubclass to a class. For example anonymousSet := Set newAnonymousSubclass will assign an anonymous subclass of Set to anonymousSet variable. Then you can compile methods in this class and instantiat...

Page 1 of 1