public class Demo2 implements Test1 { // public void show() // { // System.out.println("Demo2: implemented method."); // } public static void main(String[] args) { Test1 a = new Demo2(); a.show(); } }