79813172

Date: 2025-11-08 12:34:24
Score: 1.5
Natty:
Report link

Does the code below violates Liskov Substitution Principle (LSP)?

No.

The code is not an example of Liskov Substitution Principle (LSP), so it does not violate Liskov Substitution Principle.

q.v. this answer regarding LSP: https://stackoverflow.com/a/584732/4641116

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Eljay