Continuing on our discussion of SOLID OOP development principles, in this guide, we'll walk through the Liskov Substitution Principle (LSP):
When it comes to object-oriented development, the LSP can be slightly confusing to Ruby developers. Part of the confusion comes from the fact that this principle has more of an effect with statically typed languages, such as Java. However, it's still an important concept to understand, so stay tuned and I'll walk you through a practical example of how this applies to all OOP languages.