Loading...
Select Version
Function
The FACTORY paragraph indicates that this Identification Division introduces a factory definition.
Format
FACTORY. [IMPLEMENTS {interfacename-1}... .]
Syntax rules
interfacename-1 must be the name of an interface definition that is specified in the REPOSITORY paragraph.
The interface of the factory object must be compatible with all interfacename-1 interfaces.
General rules
If the IMPLEMENTS clause is specified, during compilation of a class the compiler checks whether the interface of its factory object is compatible with interfacename-1. If the IMPLEMENTS clause is missing, this check cannot be carried out until the object reference for the factory object is used in connection with interfacename-1.