Skip to content

Glossary: Refactoring and Clean Code

polymorphism (replace conditional with polymorphism)

Also written: polymorphism, replace conditional with polymorphism

Different objects answer the same method call in their own way, which replaces an `if` chain. `Courier` and `Pickup` each have their own `delivery_fee`.

Where the book teaches it

Related terms

Lookup tableExtract class