摘要:
一、实例化Bean 1. 通过默认构造方法实创建Bean public class Bean1 { public Bean1() { System.out.println(this.getClass().getSimpleName() + " has been created"); } } Bean 阅读全文
摘要:
一、场景模拟 public interface Human { public void goHome(); } Human:人类,下班了该回家啦 public interface Car { void start(); void stop(); void turnLeft(); void turnR 阅读全文