This topics shows the translated composition relationship.
The attributes of the class that are the target of a composition group are generated in a COBOL group related to the class that is the source of the composition link. The name of the group is the name of the target class.
See Figure 1.Figure 1. Composition group
A composition relationship is established between two classes. A group is created in the generated COBOL for this relationship. See Figure 2.
Figure 2. Composition relationship01 GRANDCHILD .
05 PARENT .
10 ATTR1 PIC X(32).
10 ATTR2 PIC X(32).
05 CHILD .
10 ATTR5 PIC X(32).
10 ATTR6 PIC X(32).
10 CONTAINMENT .
15 ATTRIBUTE1 PIC X(32).
05 GRANDCHILD .
10 ATTR7 PIC X(32).