...

/

Violation of the Liskov Substitution Principle

Violation of the Liskov Substitution Principle

Learn why we need to be cautious when using the Liskov substitution principle.

Applying the Liskov substitution principle to C# virtual methods

The Liskov substitution principle is a pattern of coding that’ll help prevent unintended functionality from being introduced into the code when we extend existing classes via inheritance.

However, certain language features might give less experienced developers the impression ...