| DEFINE CLASSclass-name | |||||||||||
| 
 | OBJECT | 
 | USING | 
 | local-data-area | 
 | 
 | 
 | |||
| parameter-data-area | |||||||||||
| local-data-definition   |  | ||||||||||
| 
 | LOCAL | 
 | USING | 
 | local-data-area | 
 | 
 | 
 | |||
| parameter-data-area | |||||||||||
| local-data-definition  |  | ||||||||||
| 
 | INTERFACE USINGcopycode |  | |||||||||
| interface-statement |  | ||||||||||
| [ property-statement]  | |||||||||||
| [ method-statement]  | |||||||||||
| END-CLASS | |||||||||||
This document covers the following topics:
For explanations of the symbols used in the syntax diagram, see Syntax Symbols.
Related Statements: CREATE
                            OBJECT | INTERFACE |
                      METHOD |
                      PROPERTY |
                      SEND METHOD 
               
Belongs to Function Group: Component Based Programming
The DEFINE CLASS statement is used to specify a class from
                       within a Natural class module. A Natural class module consists of one
                       DEFINE CLASS statement followed by an END statement.
               
| Syntax Element | Description | |
|---|---|---|
| class-name | Class Name: This is the name that is used by clients to create objects of this class. The name can be up to a maximum of 32 characters long. The name may contain periods: this can be used to construct class names such as 
 Each part between the periods (...) must conform to the Naming Conventions for User-Defined Variables. If the class is planned to be used by clients written in different programming languages, the class name should be chosen in a way that it does not conflict with the naming conventions that apply in these languages. | |
| OBJECT | OBJECT Clause: This clause is used to define the object data. The syntax of the
                                         For further information, see the description of the
                                         | |
| LOCAL | LOCAL Clause: This clause is only used to include globally unique IDs (GUIDs) in the class definition. GUIDs need only be defined if a class is to be registered with DCOM. GUIDs are mostly defined in a local data area. The syntax of the  For further information, see the description of the
                                         | |
| INTERFACE USING | INTERFACE USING Clause: This clause is used to include copycode that contains
                                         | |
| copycode | Copycode: The copycode used by the  | |
| interface-statement | INTERFACE Statement: The  | |
| property-statement | PROPERTY Statement: The  | |
| method-statement | METHOD Statement: The  | |
| END-CLASS | End of DEFINE CLASS Statement: The Natural reserved word  | |