Liskov substitution: shipping products
A subtype must keep every promise of the type it stands in for, or not claim to be one.
Level Intermediate
What you will see
- Not every product ships
- An e-book that cannot ship
- Promise only what you keep
- Tests every subtype must pass
- When the principle bends
Before / after
Base: liskov-substitution-base-tsView the diff