Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

abstract method

$
0
0

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-idUfg.Life.Policy.PolicyAbstractabstract.

method-idGetPlanCodeabstract

proceduredivisionreturningreturningPlanCodeasString.

endmethod.

*************** now for the class that inherits from the above class

class-idUfg.Life.Policy.InforcePolicyinheritstypeUfg.Life.Policy.PolicyAbstract.

method-idGetPlanCoderedefineprivate

proceduredivisionreturningreturningPlanCodeasString.

endmethod.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>