4e-08UML与设计模式.ppt

第八章 UML与设计模式 主要内容 什么是设计模式 定义:A design pattern is a proven generalized solution to a generalized problem that can be used to derive a specific solution to a specific problem. 简单地说:Pattern = problem/ solution pairs in a context 说明: 设计模式是可重用的设计经验的总结,已在实际的系统中多次得到成功应用。 设计模式一般是针对用面向对象技术的。 设计模式不只是关于孤立的对象的设计,还强调对象之间的通信。 设计模式突出了OO设计中的封装、泛化、多态等概念,学习设计模式,必须清楚这些概念的使用。 设计模式通常都很小,只涉及几个类。 设计模式的历史 设计模式的概念最早是由建筑师克里斯托夫·亚历山大(Christopher Alexander)提出来的(70年代后期)。 Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in su

文档评论(0)

1亿VIP精品文档

相关文档