Notes / Low Level Design / 10 Refactoring / 3 Replace Conditional With Polymorphism

3 — Replace Conditional with Polymorphism

Explains replacing branching type-checks with polymorphic dispatch so new cases extend the code rather than modify a growing switch statement.

· §202607241123-58 ·
Chapter Navigation
On This Page

3 — Replace Conditional with Polymorphism

Purpose

[stub: replace-conditional-with-polymorphism]

Metadata

AuthorAmit Singh
Scopelow-level-design

Local graph

Full graph →