© James E. McDonough 2017

James E. McDonough, Object-Oriented Design with ABAP, 10.1007/978-1-4842-2838-8_6

6. Polymorphism

James E. McDonough

(1)Pennington, New Jersey, USA

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 ...

Get Object-Oriented Design with ABAP: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.