The Collection Classes

  • John Hunt


This chapter discusses probably the most used class hierarchy in Smalltalk; the collection class hierarchy. The collection classes are the basis upon which data structures are constructed in Smalltalk. Section two introduces the collection class hierarchy and the common functionality provided by all collection classes. Section three presents a decision tree to help identify the most appropriate collection class to use. Sections four, five and six present the Bag class, the Set class and the OrderedCollection class (respectively). Section seven then presents how the OrderedCollection class can be used to construct Stack and Queue classes.


Class Definition Class Hierarchy Abstract Classis Instance Variable Class Creation 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag London Limited 1997

Authors and Affiliations

  • John Hunt
    • 1
  1. 1.Computer Science DepartmentThe University of Wales, PenglaisAberystwyth, DyfedWales

Personalised recommendations