docs.intersystems.com
Home  /  Application Development: Core Topics  /  Class Definition Reference  /  Class Definitions  /  Class Definitions


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


Describes the structure of a class definition.
Introduction
In InterSystems IRIS, 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_ppackage_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 InterSystems IRIS SQL” in the Orientation Guide for Server-Side Programming. Also see Storage Definitions and Storage Classes in “Defining Persistent Classes” in Defining and Using Classes.