O'Reilly logo

SAP ABAP Objects: A Practical Guide to the Basics and Beyond by Rehan Zaidi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Rehan Zaidi 2019
R. ZaidiSAP ABAP Objectshttps://doi.org/10.1007/978-1-4842-4964-2_3

3. More on Object-Oriented ABAP

Rehan Zaidi1 
(1)
Dubai, United Arab Emirates
 

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 superclass . Within ABAP, you may have any number of classes derived ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required