首页 > TAG信息列表 > ShapeMaker

外观模式

外观模式 意图:为子系统中的接口提供一个一致的界面,外观模式定义了一个高层接口,这个接口使得此系统更加容易使用。 创建接口 public interface Shape{ void draw(); } 创建接口实现类 public class Retangle implements SDhape{ public void draw(){ System.out.println