Squeak
  links to this page:    
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
How many subclasses does each class have?
Last updated at 3:59 pm UTC on 14 January 2006

How many subclasses does a class have?


For a particular class, try

Morph withAllSubclasses size
.

For all classes in the image, TerseMan says, just print...

(ProtoObject withAllSubclasses asArray
collect: [:each | each subclasses size]) asBag sortedElements