Object-program (OO Native COBOL)

The object program contains the definition of data and methods for all instances of the class.

General Format

Syntax for the General Format of object-programs

General Rules

  1. If a data-item is declared in the Object-Storage Section of an object program, it is instance data. Instance data may be referenced only in instance methods.
  2. Data items are in their initial state at the start of the run unit and remain in their last used state between method invocations.
  3. Method-1 is an instance method.