What this book covers
Chapter 1, An Introduction to Apex Design Pattern, covers the basics of inheritance, abstract classes, polymorphism, cohesion and coupling, and object-oriented design principles.
Chapter 2, Creational Patterns, focuses on different ways to instantiate objects to achieve code reusability, ease of maintenance, and loose coupling.
Chapter 3, Structural Patterns, explains the design patterns that can solve many situations and problems, which occur during project development in Apex, that demand a change in functionalities and cause a ripple effect on the rest of the system.
Chapter 4, Behavioral Patterns, provides a glimpse of some problems, such as double dispatch and code maintenance issues, and explains how to use appropriate design patterns to fix them.
Chapter 5, Handling Concurrency in Apex, discusses the design solution for the race condition in concurrency, which can result in data corruption without anyone noticing it.
Chapter 6, Anti-patterns and Best Practices, shows some common pitfalls observed during application development in Apex and suggested solutions.