摘要: package test;class father{ int x; int y; father() { x=0; y=0; } void put() { System.out.println("I am father"); } }class son extends father{ int x; int y; son() { x=1; y=1; } void put() { System.out.println("I ... 阅读全文
posted @ 2013-01-08 23:31 一把刷子 阅读(109) 评论(0) 推荐(0) 编辑
摘要: package test;class Point { int x; int y; String name="no name"; Point() { x=0; y=0; } Point(int x,int y,String name) { this.x=x; this.y=y; this.name=name; } void move(int x,int y) { this.x=x; this.y=y; } void new... 阅读全文
posted @ 2013-01-08 21:43 一把刷子 阅读(109) 评论(0) 推荐(0) 编辑