The next stop on our journey to Objectropolis takes us from Inheritance to a place called Polymorphism.
Long before the advent of object-oriented programming, the word polymorphism applied predominately to the fields of biology and chemistry. It means many (poly) shapes (morph) quality (ism). Applied to computer programming, it is
“…the provision of a single interface to entities of different types.”1
It enables us to elicit different behaviors from the same class method by controlling some aspect of the call to the method. Support for polymorphism in object-oriented languages ...