Classes ValueTypes Interfaces Type Members
class-id SuperHero. 01 _powerLevel binary-long. method-id new. set _powerLevel to 0 end method. method-id new (powerLevel as binary-long). set _powerLevel to powerLevel end method. $if JVMGEN set method-id Finalize override protected. *> JVM finalizer method. end method. $else method-id Finalize override protected. *> .NET finalizer method. end method. $end end class.
If STATIC is not specified, the method is an instance constructor, and the code is executed when a class instance is created (see the NEW expression).
If STATIC is specified, the method is a static constructor, and is executed when the class is first loaded.
Neither instance constructors nor static constructors may specify a RETURNING item. Static constructors may not specify any parameters.
If you specify parameters in the constructor header, you must not include a procedure division header in the body of the constructor.