Overview

Single Responsibility Principle (SRP)

Open/Closed Principle

Liskov Substitution Principle (LSP)

LSP Contract Rules

  1. Preconditions cannot be strengthened by the sub-type:
  2. Post-conditions cannot be weakened in the sub-type:
  3. Invariants of the super-type must be preserved by the sub-type: