Contents

Class Class


Inheritance:

Object
  Behavior
    ClassDescription
      Class

Class Class is one of the classes that implement the code management features of a Smalltalk system. An instance of Class is used to describe

Class Metaclass is used to describe the class protocol and some other properties of classes.

Instance Variables

For a better understanding of this class, you can inspect various classes and compare their data items with the definitions that a class browser shows.

First, try

OrderedCollection inspect

and compare with the definition and the instance protocol of OrderedCollection.

You see that, in spite of its demanding name, an instance of Class is essentially a symbol table: It keeps information that is gathered by the compiler and used by the compiler as well as by inspectors and the debugger. To keep things simple, an instance of Class stores only instance-related information. Instances of Metaclass are used to store class-related information.


Contents