Skip to Content

Can you derive isCOBOL object classes from Java and vice versa?

Estimated Reading Time: < 1 Minute
Question:

Is it possible to use object-oriented COBOL to subclass a Java class? Can you provide an example of how this looks in COBOL?

Is it possible to go the other way and extend a COBOL object class with Java (e.g. class myJavaSubClass extends myCOBOLSuperClass)? Can you provide an example?

Is it possible to "implement" a Java interface using OOCOBOL (similar to class myCOBOLClass implements Runnable)? How would that look in COBOL?

Answer:

The answer is yes to all of the above.

Veryant can provide examples for each case upon request.

Can you derive isCOBOL object classes from Java and vice versa?

Powered by PHPKB (Knowledge Base Software)