PROPERTY
property-name
|
|
OF [INTERFACE ] interface-name
|
|
IS
operand
|
|
END -PROPERTY
|
This document covers the following topics:
For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.
Related Statements: CREATE
OBJECT
| DEFINE
CLASS
| INTERFACE
|
METHOD
|
SEND METHOD
Belongs to Function Group: Component Based Programming
The PROPERTY
statement assigns an object data variable
operand as the implementation to a property, outside an interface
definition.
It is used if the interface definition in question is included from a copycode and is to be implemented in a class-specific way.
It may only be used within the DEFINE CLASS
statement and after
the interface definitions.
The interface and property names specified must be defined in the
INTERFACE
clause of the DEFINE
CLASS
statement.
Syntax Element | Description |
---|---|
property-name
|
Property Name:
This is the name assigned to the
|
OF
interface-name
|
Interface Name:
This is the name assigned to the
|
IS
operand
|
IS Clause:
The |
END-PROPERTY
|
End of PROPERTY Statement:
The Natural reserved word |
The example contained
in the documentation of the METHOD
statement shows how
the same interface is implemented differently in two classes, and how the
PROPERTY
statement and the METHOD
statement are used
to achieve this.