設計模式可以歸爲一下3類:
創建型(Creational):單例模式(Singeton)
結構型(Structural):MVC、裝飾器模式(Decorator)、適配器模式(Adapter)和外觀模式(Facade)。
行爲型(Behavioral):觀察者模式(Observer)、備忘錄模式(Memento)
設計模式可以歸爲一下3類:
創建型(Creational):單例模式(Singeton)
結構型(Structural):MVC、裝飾器模式(Decorator)、適配器模式(Adapter)和外觀模式(Facade)。
行爲型(Behavioral):觀察者模式(Observer)、備忘錄模式(Memento)