DSN TCH DH dhruvil 🐣L in SOLID — Liskov Substitution Principle (LSP) Objects of a superclass should be replaceable with objects of its subclass without breaking the correctness of the program.
TCH DH dhruvil 🔓🔒O in SOLID — Open/Closed Principle (OCP) The Open/Closed Principle is the second principle in SOLID, and it’s all about writing code that is: