Ganesh Rama Hegdedesignpatterns.hashnode.dev·Aug 25, 2024Liskov Substitution Principle (LSP)The "L" in the SOLID principles is the Liskov Substitution Principle or the LSP. In this BLOG, I had mentioned the definition of the LSP. Subtypes must be substitutable for their base types without altering the correctness of the program. Essentially...1 likeTypeScript
Palanivel SundaraRajan GugaGuruNathangurupalaniveltech.hashnode.dev·Jun 7, 2024Liskov Substitution PrincipleLiskov Substitution Principle enables you to replace objects of a parent class(Bird) with objects of a subclass(Eagle,Penguin) without breaking the application. Liskov Substitution Principle extends the open/closed Principle. public class Bird { ...Liskov Substitution