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

1. Creating Classes and Objects

Rehan Zaidi1 
(1)
Dubai, United Arab Emirates
 

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. ...

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.