把Point,定义为接口,并提供两个方法move和show,然后你在Rectangle类实现Point类就行。
public interface Point { void move(double x, double y); String show(); }