Skip to content

Which method body runs

A variable is declared as the parent type and holds a subclass object. An overridden method is called on it.

Which body runs, and what decides?