Polymorphism lets different objects respond to the same command in their own ways. A single operation can hide different implementations behind a shared action. section 3.4
One Share button, different actions
Tap Share on a photo: an email app attaches it to a draft, a messaging app puts it in a text, and a social app creates a post. The command stays the same; each app handles it differently. section 3.4
A treatment room for new patient types
A generic TreatmentRoom can handle different Patient types, including a type added later, without changing the room’s code. This illustrates how polymorphism can support extensibility. section 3.8











