Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
How many subclasses does each class have?
Last updated at 1:35 pm UTC on 22 December 2015

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



See also