abstract class MyClass { public MyClass() { } public abstract void myMethod(); } public class MainClass { public static void main(String[] argv) { MyClass myClass = new MyClass(); System.out.println(); } }
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot instantiate the type MyClass at MainClass.main(MainClass.java:10)