package class6_2_HalfExam3_Problem7_start;// Dr. Yoder. MSOE. 12 April 2017 /** * This example illustrates some of the differences between an abstract method * and an interface. Compare this file with Interface.java */ public abstract class AbstractClass { public static final int Z=5;// Class constant private int x; // Instance variable private static int y; // Class variable public AbstractClass(){} // Constructor public void method() {} // Implementation for an ordinary method protected abstract void pam(); // Protected abstract method public abstract void m2(); // Abstract method public static void m3(){} // Class method // Not allowed anywhere: // private abstract int y; // Variables can never be abstract - they have no bodies to omit. // public abstract static void m4(); // Class methods can never be abstract. There is no reference for polymorphism }