Design Principle #3: Program to Interfaces, Not Implementations
This naturally follows Composition Over Inheritance because composition becomes truly powerful when we depend on interfaces instead of concrete classes.
Let's understand with our previous example of U
abhinandanmishra1.hashnode.dev2 min read