摘要: 外观模式 意图:为子系统中的接口提供一个一致的界面,外观模式定义了一个高层接口,这个接口使得此系统更加容易使用。 创建接口 public interface Shape{ void draw(); } 创建接口实现类 public class Retangle implements SDhape{ 阅读全文
posted @ 2022-07-11 11:22 帅气的涛啊 阅读(47) 评论(0) 推荐(0)