79813183

Date: 2025-11-08 12:46:27
Score: 0.5
Natty:
Report link

Why should I have print()? Why should I dereference b? A and B are completely different classes, they do not have a common interface at all, and do not have a common base class. LSP says nothing about polymorphism, it is about subobjects. LSP: Objects of a superclass should be replaceable with objects of its subclasses without altering the correctness of the program.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why
  • High reputation (-1):
Posted by: Dmitriano