Have you ever heard of SOLID? 🤔 Let's look at the 'L: Liskov Substitution Principle (LSP)' of it.
Oct 5, 2025 · 2 min read · As per the book's definition: Objects of a superclass should be replaceable with objects of its subclasses without breaking the application. It means consider the following example: class Bird { public void fly() { System.out.println(...
Join discussion



