rJava - how to call an abstract class method?
- by Sarah
I am trying to create an R function that taps into my JAVA code.
I have an abstract class, let's say StudentGroup, that has abstract methods, and one method "getAppropriateStudentGroup" which returns (based on config) a class which extends StudentGroup. This allows calling classes to behave the same regardless of which StudentGroups is actually appropriate.
1) How can I use rJava to call getAppropriateStudentGroup?
and 2) How can I call the methods on the returned class?
Thank you!