Lesson 1
First design pattern examined Singleton Design Pattern
This module exposes you to your first design pattern, the Singleton. The Singleton design pattern is used when there should only be one
instance of a given class. It uses static, class methods and private
constructors to strictly control creation of new instances of the class.
In this module, you will learn:
constructors to strictly control creation of new instances of the class.
In this module, you will learn:
- The ten elements that distinguish a pattern
- The intent of the Singleton pattern
- When to use the Singleton pattern
- The structure of the Singleton pattern
- How the Singleton pattern is used in the real world