![]() |
![]() |
![]() |
![]() |
![]() |
|
To understand what you see in the class-hierarchy browser, you need to know how the class hierarchy is displayed.
First, note that every class in Smalltalk is a subclass of some other
class, except for the class named Object. Thus, the classes in
Smalltalk form an treelike, hierarchical structure, rooted in the
Object class. The following shows a small portion of the
class hierarchy:
Object
|
*-*------------*--
| |
| |
Collection Magnitude
| |
| |
*-*-----*-- *-*--------*---------*--
| | | | |
| | | | |
Bag Set Number Date Time
|
|
*-*-------*---------*--
| | |
| | |
Float Fraction Integer
Now, think of turning the class-hierarchy diagram on its side:
Object
|
*-- Collection
| |
| *-*-- Bag
| |
| *-- Set
| |
|
*-- Magnitude
| |
*-*-- Number
| |
| *-*-- Float
| |
| *-- Fraction
| |
| *-- Integer
| |
|
*-- Date
|
*-- Time
|
Then, think of deleting all empty lines and indenting classes on each level by just one space per level:
Object Collection Bag Set ... Magnitude Number Float Fraction Integer ... Date Time ... ...