Create subclass from superclass static main
问题 I have a generic, abstract class ( SuperClass ). I want to have there a main method, that would be a default main for each subclass and would do the same, but with proper subclass object that derived and called it. Like this: public abstract class SuperClass { // some code here... public static void main(String args[]) { // here instantiate the subclass // extending this SuperClass, and call // some methods } } public SubClass extends SuperClass { // here just implement some // abstract