摘要: 一、实例化Bean 1. 通过默认构造方法实创建Bean public class Bean1 { public Bean1() { System.out.println(this.getClass().getSimpleName() + " has been created"); } } Bean 阅读全文
posted @ 2018-11-30 16:55 柚子苹果果 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 一、场景模拟 public interface Human { public void goHome(); } Human:人类,下班了该回家啦 public interface Car { void start(); void stop(); void turnLeft(); void turnR 阅读全文
posted @ 2018-11-30 16:21 柚子苹果果 阅读(333) 评论(0) 推荐(0) 编辑