Quantcast
Channel: Frank Sun » Design Pattern
Viewing all articles
Browse latest Browse all 13

Singleton Pattern

$
0
0
from: http://www.oodesign.com/singleton-pattern.html Motivation Sometimes it’s important to have only one instance for a class. For example, in a system there should be only one window manager (or only a file system or only a print spooler). Usually singletons are used for centralized management of internal or external resources and they provide a global point of Read More →

Viewing all articles
Browse latest Browse all 13

Trending Articles