# Polymorphism: One Call, Many Behaviors

When the desk checks what kind of vehicle it has before it can price it, every new vehicle means another check, and a forgotten one prices it at $0; polymorphism moves each price into its own class, so one call, rental.price(hours), does the right thing for a bike, an e-bike and a scooter.

![Cheat sheet: Polymorphism: One Call, Many Behaviors](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/87b657e80897477e8e0b7d40deb06010.webp)

- Category: Data Structures
- Level: Apprentice
- Tags: c-sharp, Dynamic Dispatch, java, JavaScript, OOP, Polymorphism, python, typescript
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-polymorphism-cheat-sheet
