-
Book Overview & Buying
-
Table Of Contents
Learning Python Design Patterns - Second Edition - Second Edition
By :
In the previous chapter, we explored design patterns and their classifications. As we are aware, design patterns can be classified under three main categories: structural, behavioral, and creational patterns.
In this chapter, we will go through the Singleton design pattern—one of the simplest and well-known Creational design patterns used in application development. This chapter will give you a brief introduction to the Singleton pattern, take you through a real-world example where this pattern can be used, and explain it in detail with the help of Python implementations. You will learn about the Monostate (or Borg) design pattern that is a variant of the Singleton design pattern.
In this chapter, we will cover the following topics in brief:
At the end of the chapter, we...
Change the font size
Change margin width
Change background colour