19
Using the Singleton Pattern
This chapter will continue our goal to expand your C++ programming skills beyond core OOP concepts, with the objective of empowering you to solve recurring types of coding conundrums utilizing core design patterns. Utilizing design patterns in coding solutions can not only provide refined solutions but also contribute to easier code maintenance and provide potential opportunities for code reuse.
The next core design pattern that we will learn how to implement effectively in C++ is the Singleton pattern.
In this chapter, we will cover the following main topics:
- Understanding the Singleton pattern and how it contributes to OOP
- Implementing the Singleton pattern in C++ (with simple techniques versus a paired-class ...
Get Deciphering Object-Oriented Programming with C++ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.