Junior OOP What is the Liskov Substitution Principle and how does inheritance affect it? Derived classes should be replaceable by base class without affecting correctness. Inheritance violating this principle can cause unexpected behavior.