Mastering "L" in S.O.L.I.D
“Objects of a superclass should be replaceable with objects of its subclasses without breaking the application’s behavior.”
💡 Real-Life Example
Think of this:
You have a class Bird that can fly().
You create a subclass Sparrow (it can fly ✅).
The...
blog.techwithaditya.in2 min read