摘要:
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 ... 阅读全文
摘要:
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... 阅读全文