public abstract class Shape{} public class Point extends Shape{ public Point(double x,double y){ this.x=x; this.y=y } }
现在是这样:
Shape s = new Point(10,10);
如何理解这个实例?
凉风5
慕的地8582982
心有猛虎_细嗅蔷薇
相关分类