Skip to content

What polymorphism replaces

Code that checks an object's type and branches accordingly is replaced by a polymorphic call.

What is the practical gain?