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.
3. More on Object-Oriented ABAP
Rehan Zaidi1
(1)
Dubai, United Arab Emirates
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
superclass
. Within ABAP, you may have any number of classes derived ...
Get SAP ABAP Objects: A Practical Guide to the Basics and Beyond now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.