Next up on the SOLID principle acronym is the L which denotes: Liskov Substitution Principle(LSP). Liskov Substitution Principle (LSP): The LSP states that objects of a superclass should be replaceable with objects of its subclasses without breaking the program’s correctness. This principle ensures that any function that works with a superclass will also work […]