Dependency Injection
In our last chapter, we explored the concepts of object-oriented programming, and worked through the process of building an application that conformed to object-oriented design principles. The Gang of Four (GoF) design patterns can be broken down into three main groups. The first of these groups is named Creational patterns, and covers numerous ways of creating objects. The second of these groups is named Structural patterns, and describe methods of designing object hierarchies that work together to achieve encapsulation and loose coupling. The third of these groups is named Behavioral patterns, and are designed to cover the behavior of a group of objects together in order to achieve certain goals. Over time, these patterns ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access