Here is the script (Scccc.groovy):
import scriptParents.ScriptGroovyParent
println(queryThisBaby("my query"));
and here is the superclass:
class ScriptGroovyParent {
public ScriptGroovyParent() {
}
def queryThisBaby(name) {
return name +" was run."
}
}
I get an error though when trying to run a script.
Caught: groovy.lang.MissingMethodException: No signature of method: scripts.Scccc.queryThisBaby() is applicable for argument types: (java.lang.String) values: [my query]
groovy.lang.MissingMethodException: No signature of method: scripts.Scccc.queryThisBaby() is applicable for argument types: (java.lang.String) values: [my query]
at scripts.Scccc.run(Scccc.groovy:5)
How can it be?
source
share