MF 

Class-object (OO Native COBOL)

The class object is an object that acts as a creator of objects.

General Format


General format for the class-object for native Object-Oriented code

General Rules

  1. If a data-item is declared in the Object-Storage Section of a class object, it is class data. Class data may be referenced only in class methods. Class data can be inherited by subclasses.
  2. Data is in its initial state at the start of the run unit and remains in its last used state between method invocations.
  3. Method-1 is a class method.