Within ABAP object-oriented programming, classes are defined which encapsulate data as well as functions. Objects (also known as instances) can then be created based on the class in question. Classes can be created locally (within a program) or globally (available to all programs in a system). ABAP also supports polymorphism via simple inheritance interfaces.
In this chapter, we start by defining the key terms used in the ABAP Objects arena. Then, we look at the various components of a typical class in ABAP Objects and walk through the steps required to create a local class in an ABAP program. ...