Data members of a class
- Last Updated: July 12, 2021
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Data members of a class hold runtime values for a class instance. Whenever an instance of a class is created, each instance has its own values for the data members of the class. The values for the data members of a class instance are assigned when the instance is created or are assigned by the methods of the class.
You can define four types of data members for an ABL class:
|
Data member type |
Description |
|---|---|
|
variable |
Holds a value of a built-in type or user-defined type. A best
practice is to define variables as |
|
property |
Holds a value of a built-in type or user-defined type. A property
is like a variable, but it allows you to customize how its values will be read or
set. A best practice is to define properties as |
|
temp-table |
Holds aggregate data such as a database record in a relational
database table. A temp-table typically holds data of multiple types. A best practice
is to define a temp-table as |
|
dataset |
Holds data that represent a set of temp-tables. |
- Define data members in Develop Object-oriented ABL Applications
- Comparison with procedure-based programming in Develop Object-oriented ABL Applications