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

Customizing Definition Classes

Definitions are the means by which the G2 class hierarchy is extended. This extensibility extends to the definition classes themselves. You can:

An instance of the customized definition is itself a definition, so it can be used to define a new class. Any instance of that class can then reference that definition to obtain the value of the definition's user-defined attribute(s) using the grammar:

This capability is useful when an attribute relevant to a class has the same value for all instances of a class at any given time. Storing the attribute in the definition:

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

Copyright © 1997 Gensym Corporation, Inc.