package zimu; public class A { public void f() { for (int i = 97; i <123; i++) { System.out.print((char)i); } System.out.println(); } }
package zimu; public class B extends A { public void g() { for (int i = 65; i <91; i++) { System.out.print((char)i); } System.out.println(); } }
package zimu; public class C { public static void main(String[] args) { A a=new A(); a.f(); B b=new B(); b.f(); b.g(); } }