Loading...
Learn Liskov Substitution Principle — a key concept for LLD interviews.
LSP: If you replace a parent class with its child, everything should still work. Penguin extends Bird but throws on fly() — that breaks LSP. Fix: don't put fly() in Bird if not all birds can fly.