| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (5 out of 19)

Creating Class Definitions

A CLASS-DEFINITION can define a subclass of any extensible class.

To create a new CLASS-DEFINITION:

  1. Choose:

    The icon of a CLASS-DEFINITION looks like this:


  2. Click to place the new definition on a workspace.

Storing Definitions on Workspaces

A definition specifies the attributes of a new class. Because G2 uses the definition to interpret the attributes of each class instance, the definition must be available any time G2 references the instance. Similarly, subclasses (and their instances) also require the definitions of the superior classes.

By default, G2 stores a definition item on the workspace from which you choose the New-definition option. When choosing a workspace to contain your definitions, select one that will remain enabled or active as long as any workspace containing instances and subclasses is active. A disabled or inactive workspace disables all items that reside upon it, along with their instances and subworkspaces.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (5 out of 19)

Copyright © 1997 Gensym Corporation, Inc.