Design Principles -Contd.
Prefer interface over concrete class
To make design flexible, always try to program interface over concrete classes.
This helps to extend code later very easily.
Favor composition over inheritance
Inheritance is the easiest way to reuse the code. Jus...
yashbafna.hashnode.dev2 min read