面向对象编程AS3设计模式

一般来讲可将设计模式分为三大类。

一.creational  创建类

Factory Mode Pattern(工厂方法) 、Singleton Pattern(单例模式) 

二.structural  结构类

Decorator Pattern(装饰者模式)、Adapter Pattern(适配器模式)、Composite Pattern(组合模式)

三.behavioral 行为类

Command Pattern(行为模式)、Observer Pattern(观察者模式)、Template Method Pattern(模版方法)、State Pattern(状态模式)、Strategy Pattern(策略模式)

各种小的设计模式的组合,形成混合模式分为两类

一.Model-View-Controller ,mvc设计模式

二.Symmetric Proxy ,对称代理

设计模式和oop的两个发展

面向接口的编程

Favor Composite ove inheritance ,but 组合跟继承往往同时使用

 

原文地址:https://www.cnblogs.com/YonguiL/p/2985137.html