Skip to main content

Polymorphism

  • Chapter
  • First Online:
Object-Oriented Design with ABAP
  • 1380 Accesses

Abstract

The next stop on your journey to Objectropolis takes you from Inheritance to a place called Polymorphism.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://docs.oracle.com/javase/tutorial/java/IandI/polymorphism.html

  2. 2.

    Indeed, we already have seen the word static used as a qualifier to describe encapsulation units, constructors and destructors, classes and members of classes, realm, reference variable type, and design constraints.

  3. 3.

    This is one of a few examples where the implementation of object-oriented capabilities in ABAP deviates from the Java model.

  4. 4.

    One could argue that we could define these subroutines specific to the type of boat to be maneuvered, such as start_motor_boat and turn_sail_boat_right, but that only shifts to the caller the location of the conditional logic to make the determination of both the type of boat and its maneuver.

  5. 5.

    Horst Keller and Sascha Krűger, ABAP Objects: An Introduction to Programming SAP Applications, Addison Wesley, 2002, p.294.

  6. 6.

    We might consider the word redefinition, qualifying a methods statement of a subclass definition, as a word enabling polymorphic behavior; however, this qualifier may also be used in the absence of polymorphism.

  7. 7.

    We shall see in a subsequent chapter that such method definitions can be provided in ways other than just through inheritance.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 James E. McDonough

About this chapter

Cite this chapter

McDonough, J.E. (2017). Polymorphism. In: Object-Oriented Design with ABAP. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2838-8_6

Download citation

Publish with us

Policies and ethics