Some of the design patterns that are available in software development are related to the code structure. These patterns help you to design your code in such a way that you will be able to avoid common structural problems. In the Design Patterns: Elements of Reusable Object-Oriented Software book by the Gang of Four, there are seven structural design patterns. In this section, we are just going to discuss four of these, which are as follows:
- The adapter pattern
- The decorator pattern
- The facade pattern
- The proxy pattern
If you want to find out more about the other three, take a look at the book Design Patterns: Elements of Reusable Object-Oriented Software by the Gang of Four. At first, it might be a little confusing to start using these patterns, but, as you get more experienced, it will become easier to identify which pattern is appropriate for which...