检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《计算机应用与软件》2003年第8期12-13,84,共3页Computer Applications and Software
摘 要:本文首先介绍设计模式产生的背景 ,然后以简单、易懂且具通用性的Drawcli程序为例 ,详细分析其中采用的三种设计模式 :Prototype、Observer及ChainofResponsibility在Drawcli程序中的应用。这些设计模式虽然是针对不同的应用而产生的 ,但它们也有内在的共同性 :降低耦合、利用了面向对象的继承和封装思想。它们本身十分通用 ,可以作为其他设计的模板。设计模式的采用提高了设计的通用性和自由度 。This paper discussed some background information about design pattern.Then it illustrated three important design patterns:Prototype,Observer and Chain of Responsibility,using Drawcli as an example,for Drawcli is easy to understand and is in general use.The three patterns share some common properties:decreased coupling,using inheritance and encapsulate concept of object-orient programming,although each pattern is a solution for an application-specific problem.Each design pattern is general enough to act as a design template for other applications.Using design pattern increases the generality and freedom of architecture.It's a design concept deserving recommendation.
关 键 词:程序设计 Drawcli程序 设计模式 面向对象 继承
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.3