WORKING-STORAGE SECTION for defining subclass instance data
About this task
Use the WORKING-STORAGE SECTION
in
the DATA DIVISION
of the subclass OBJECT
paragraph
to describe any instance data that the subclass needs in addition
to the instance data defined in its superclasses. Use the same syntax
that you use to define instance data in a class.
For example, the definition of the instance data for the CheckingAccount subclass of the Account class might look like this:
IDENTIFICATION DIVISION.
Object.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 CheckFee pic S9(9) value 1.
. . .
End Object.