DesignPatterns:设计模式的范围(类或对象)解释了什么? [英] DesignPatterns: What does scope of a design pattern ( either Class or Object) explains?

查看:49
本文介绍了DesignPatterns:设计模式的范围(类或对象)解释了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DesignPatterns:设计模式的范围(类或对象)解释了什么?

DesignPatterns: What does scope of a design pattern ( either Class or Object) explains?

请清除如何识别/结束设计模式范围的混淆?

Please clear the confusion of how to identify/conclude the scope of a design pattern?

谢谢

推荐答案

DesignPatterns是应用程序开发中遇到的反复出现的问题的解决方案....

DesignPatterns are solutions to the recurring problems faced in application developement....

不要混淆模式与类或对象有关......这些是设计的解决方案 问题..

Dont confuse patterns are related to Class or Object..these are solution to design  problem..

例如......如果我的要求是在应用程序启动时只加载一次配置设置并希望使用直到应用程序关闭

For example...If my requirement is loading configuration settings only once when application starts and wanted to use till application closes

这是常见的问题,可以通过 SingletonPattern 来解决

This is common problem can be solved by using SingletonPattern

就像这些模式解决了每个模型设计问题....

Like every recuring design problem is addressed by these patterns....

检查GangOfFour模式,这些是最有用的模式已使用

Check GangOfFour patterns, these are most useful patterns used

http://www.dofactory.com/ Patterns / Patterns.aspx  

还检查

http://msdn.microsoft.com/en-us/practices/default.aspx

希望这有助于你...

Hope this helps you...


这篇关于DesignPatterns:设计模式的范围(类或对象)解释了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆