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.

More from C# Programming Tutorial

All questions for this course