摘要: class A{int x,y;A(){x=100;y=200;}A(int x,int y){this.x=x;this.y=y;}}class B extends A{int z;B(int x,int y){super(x,y);z=300;}B(){super();z=800;}public void f(){System.out.printf("x=%d,y=%d,z=%d\n",x,y,z);}}public class Example5_6{public static void main(String args[]){B b1=new B(10,20);b1. 阅读全文
posted @ 2013-04-13 18:57 徐慧同学 阅读(297) 评论(0) 推荐(0) 编辑