Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This is the fifth of an eight part series where I am joined by Phil Japikse to discuss design patterns. A design pattern is a best practice you can use in your code to solve a common problem. In this episode, Phil demonstrates the Singleton pattern. This pattern restricts the instantiation of a class to one instance and provides global access to that instance.
Episodes in this series:
- Command/Memento patterns
- Strategy pattern
- Template Method pattern
- Observer/Publish-Subscribe patterns
- Singleton pattern (this episode)
- Factory patterns
- Adapter/Facade patterns
- Decorator pattern
Resources