Is it possible to pass a class as a variable to a function? (or any workaround)
I want something like:
and then use it as:Code:static <type> function(<type> a) {
a.method();
}
Such that java replaces <type> by Subclass in the function.Code:function(Subclass a);
