SAP ABAP Tutorials

Object Oriented ABAP Inheritance Implementation in Local Class

Inheritance is used to derive a new class from an existing class. New class is called child class, subclass or derived class. Existing class is called parent class or superclass. The subclass inherits all the components of the superclass defined under PUBLIC and PROTECTED section, but not under PRIVATE section. Subclass components can access the […]

Object Oriented ABAP Inheritance Implementation in Local Class Read More »

Object Oriented ABAP Generalization, Specialization and Inheritance

Inheritance is an important concept of Object-Oriented programming. But, to really understand the importance of inheritance, you need to first understand the concept of Generalization and Specialization. Inheritance The general concept of Inheritance is : a class ( known as subclass ) inherits another class ( known as superclass ). In Inheritance, the subclass inherits

Object Oriented ABAP Generalization, Specialization and Inheritance Read More »

Object Oriented ABAP Static Constructor in Local Class

Similar to instance constructor, static constructor is a special method called by the system runtime when the class is accessed for the first time during that program. How to define static constructor? Static constructor is basically a static method. To define a static constructor, In the ABAP Class definition, create a method with name CLASS_CONSTRUCTOR

Object Oriented ABAP Static Constructor in Local Class Read More »

Object Oriented ABAP Instance Constructor in Local Class

Instance Constructor can be termed as a special method called the system runtime implicitly (automatically) as soon as an instance of the class is created. So, what is the use of Instance Constructor? A primary function of instance constructor is to initialize attributes when creating objects. How to create Instance Constructor? The instance constructor is

Object Oriented ABAP Instance Constructor in Local Class Read More »

Object Oriented ABAP Local Class Instance Methods Static Methods Functional Methods

In this article we will discuss about Object Oriented ABAP Local Class Instance Methods, Static Methods and Functional Methods with the help of an example. Here you learn Object Oriented ABAP Local Class Methods syntax Object Oriented ABAP Instance Methods Object Oriented ABAP Static Methods Object Oriented ABAP Functional Methods Access static attributes Access Instance

Object Oriented ABAP Local Class Instance Methods Static Methods Functional Methods Read More »