Open Vertmo opened 4 years ago
It is unfortunately not possible to extend a Java class; you can only implement a Java interface through an OCaml object. If it can solve your problem, you can find an example here.
Béatrice Carré worked on a tool that would allow that, but I am afraid I cannot remember the details; the repository can be found here.
hiii can you mentor me in learning Ocaml
I'm currently experimenting with OCamlJava, and I can't find a way to
extends
a java class (that would for instance offer someprotected
methods) from OCaml code. Is there a way to do it I cannot find, or is it impossible with OCamlJava ?