单身模式在行动? [英] Singleton Pattern in action?

查看:90
本文介绍了单身模式在行动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以给我一个何时使用单例模式的最好例子。不讨论如何使用,只讨论何时以及为何使用?

Can any one give me the best example of when to use singleton pattern.Don''t discuss how to use , only discuss when and why to use??

推荐答案

谷歌是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题...



使用 部分问题进行快速搜索 搜索字词为:160万次点击。



何时使用单身模式 [ ^ ]





将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的时间。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using part of your question as the search term gave : 1.6 million hits.

when to use singleton pattern[^]


In future, please try to do at least basic research yourself, and not waste your time or ours.


这篇关于单身模式在行动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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