I have a class that inherits from an abstract class. Inside of this class is an abstract method. In the inherited class I want the abstract method to be private. When I code override I get an error that says "COBCH0965: Overriding method must have visibility Public" and from my understanding of Visual Cobol is legitimate. The question comes into play when I use the cobol keyword override it seems to build just fine. Is this the intent? Below is an example of the redefines code.
class-id Ufg.Life.Policy.PolicyAbstract abstract.
method-id GetPlanCode abstract
procedure division returning returningPlanCode as String.
end method.
*************** now for the class that inherits from the above class
class-id Ufg.Life.Policy.InforcePolicy inherits type Ufg.Life.Policy.PolicyAbstract.
method-id GetPlanCode redefine private
procedure division returning returningPlanCode as String.
end method.
#VisualCOBOL