[Next] [Previous] [Up] [Top] [Contents] [Index]

Definitions

Classes and their superclasses

A class is an object that determines the inherited behavior of other objects, called its instances.

  • Classes are organized in a hierarchy.
  • A class can inherit structure from other classes, which are called its superclasses. Its immediate superclasses are called its direct superclasses. A class is a subclass of each of the classes from which it inherits.
  • There are two classes at the top of the class hierarchy. The class named t has no superclasses and is a superclass of every class except itself. The class named standard-object is a superclass of all the classes programmers create. (However, it is not a superclass of some built-in classes.)
  • A class has a name.
  • A class has a class precedence list, which is the total ordering of the class and all its superclasses. When a class is defined, the order in which its direct superclasses are mentioned determines the order of the class precedence list.

  • Most Common Lisp types now correspond to a class with the same name. That is, for a type macptr, there will also be a class macptr.


    Gettmg Started with MCL - 19 OCT 1996
    [Next] [Previous] [Up] [Top] [Contents] [Index]

    Generated with Harlequin WebMaker