如何在郑州提高网站seo排名?

摘要:想做一个网站,郑州seo排名哪有,成都有啥好玩的地方,ASP个人网站的建设Gof23 设计模式,也叫Gang of Four(GoF)设计模式&
想做一个网站,郑州seo排名哪有,成都有啥好玩的地方,ASP个人网站的建设Gof23 设计模式#xff0c;也叫Gang of Four#xff08;GoF#xff09;设计模式#xff0c;是由四位设计模式大师#xff08;Erich Gamma、Richard Helm、Ralph Johnson 和 John Vlissides#xff09;撰写的一本书——《设计模式#xff1a;可复用面向对象软件的基础》所…Gof23 设计模式也叫Gang of FourGoF设计模式是由四位设计模式大师Erich Gamma、Richard Helm、Ralph Johnson 和 John Vlissides撰写的一本书——《设计模式可复用面向对象软件的基础》所引起的热潮它提出了23种软件设计模式这些模式可以帮助开发人员更好地理解、设计和实现一个软件系统。这23种模式分为三类创建型模式Creational Patterns、结构型模式Structural Patterns和行为型模式Behavioral Patterns。创建型模式1. 工厂方法模式Factory Method2. 抽象工厂模式Abstract Factory3. 单例模式Singleton4. 建造者模式Builder5. 原型模式Prototype结构型模式1. 适配器模式Adapter2. 桥接模式Bridge3. 组合模式Composite4. 装饰器模式Decorator5. 外观模式Facade6. 享元模式Flyweight7. 代理模式Proxy行为型模式1. 责任链模式Chain of Responsibility2. 命令模式Command3. 解释器模式Interpreter4. 迭代器模式Iterator5. 中介者模式Mediator6. 备忘录模式Memento7. 观察者模式Observer8. 状态模式State9. 策略模式Strategy10. 模板方法模式Template Method11. 访问者模式Visitor以下是各个模式的代码 Demo工厂方法模式public interface FruitFactory {Fruit getFruit(); }public class AppleFactory implements FruitFactory {Overridepublic Fruit getFruit() {return new Apple();} }public class OrangeFactory implements FruitFactory {Overridepublic Fruit getFruit() {return new Orange();} }抽象工厂模式public interface FruitFactory {Fruit getFruit();Juice getJuice(); }public class AppleFactory implements FruitFactory {Overridepublic Fruit getFruit() {return new Apple();}Overridepublic Juice getJuice() {return new AppleJuice();} }public class OrangeFactory implements FruitFactory {Overridepublic Fruit getFruit() {return new Orange();}Overridepublic Juice getJuice() {return new OrangeJuice();} }单例模式public class Singleton {private static Singleton instance;private Singleton() {}public static Singleton getInstance() {if (instance null) {instance new Singleton();}return instance;} }建造者模式public class ComputerBuilder {private Computer computer;public ComputerBuilder() {this.computer new Computer();}public ComputerBuilder setCpu(String cpu) {this.computer.setCpu(cpu);return this;}public ComputerBuilder setRam(String ram) {this.computer.setRam(ram);return this;}public ComputerBuilder setStorage(String storage) {this.computer.setStorage(storage);return this;}public Computer build() {return this.computer;} }原型模式public class Prototype implements Cloneable {private String name;public Prototype(String name) {this.name name;}Overridepublic Object clone() throws CloneNotSupportedException {return super.clone();}public String getName() {return name;}public void setName(String name) {this.name name;} }