Skip to main content
1 of 5
user avatar
user avatar

How to call super class when extending a Java class using genclass in Clojure?

I want to call a method in the super class from Clojure. I am extending a Java class using :gen-class.

(ns subclass.core (:gen-class :extends Baseclass)) (defn greet [] "Hello from core") ; how to call super.greet()? (defn -main [& args] (greet)) 

Java Baseclass

public class Baseclass { public String greet() { return "Hello from Baseclass"; } } 
user235273