Liskov Substitution Principle Isn’t Complex. Just Give It a Try
Introduction
As we all know, software requirements always change, and we as developers need to make sure that these changes don’t break the existing code. For this reason, the SOLID principles were introduced in Object-Oriented design to ease this pr...
mayallo.hashnode.dev13 min read
Carlos Andrés Sierra Betancur
Thanks for the article. One quick question though: isn’t the example in “Covariance of Return Types” violating the “Countervariance of Method Arguments”? The subtype can only receive strings, but the super type can also receive numbers.