摘要: public class Shape { public void area() { System.out.println("各种形状的面积。。。"); } public static void main(String[] args) { Shape s = new Circle(); //动态绑定 在这里 s 这个对象之所以能调用 Circle这个类中的area()方法... 阅读全文
posted @ 2018-03-13 15:28 zailushan 阅读(92) 评论(0) 推荐(0) 编辑