Home > Articles > Software Development & Management > UML

This chapter is from the book 16.17 Singleton Classes

16.17 Singleton Classes

In the world of OO design patterns, there is one that is especially common, called the Singleton pattern. It is explained later, but an implication of the pattern is that there is only one instance of a class instantiated—never two. In other words, it is a “singleton” instance. In a UML diagram, such a class can be marked with a ‘1’ in the upper right corner of the name compartment. See Figure 16.17.

Figure 16.17 Showing a singleton.

  • + Share This
  • 🔖 Save To Your Account