After the basic introduction to ABAP provided in Chapters 1 and 2, this chapter dives deeper into the topic. It starts by showing how inheritance applies to ABAP Objects. Then, the chapter covers the concept of casting—upcasting and downcasting—and how we can achieve polymorphism using casting.
Inheritance: Super and Subclasses
ABAP lets you derive (inherit) a new class from a given class. This is called inheritance and the inherited class is referred to as a subclass
of the main class in question, which is known as the
. Within ABAP, you may have any number of classes derived ...