Caché Class Definition Reference
Class Definitions
[Home]  [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Describes the structure of a class definition.
Introduction
In Caché, a class can include familiar class elements such as properties, methods, and parameters (known as constants in other class languages). It can also include items not usually defined in classes, including triggers, queries, and indexes.
Details
A class definition has the following structure:
Import import_package_list

Include include_code

IncludeGenerator include_generator_code

/// description
Class package.shortclassname Extends superclass_list [ class_keyword_list ]
{

Class_members

}
Where:
See Also
This reference does not formally introduce storage definitions. For an introduction to storage definitions, see Storage in “Persistent Objects and Caché SQL” in the Caché Programming Orientation Guide. Also see Storage Definitions and Storage Classes in “Defining Persistent Classes” in Using Caché Objects.