Instance vs Class Constructors: ABAP Explained

What is a constructor? Constructor is a special type of method for initializing the attributes of the class.It gets triggered automatically when an object is created.It never returns any value.It can be declared in the Public Section only. Instance Constructor An instance constructor in ABAP is specific to each object, meaning it is automatically executed … Continue reading Instance vs Class Constructors: ABAP Explained

ABAP Casting: Narrow vs Widening Explained

When we assign the instance of the Subclass back to the instance of the Superclass, than it is called the “Narrow Casting”, because we are switching from a “More Specific view of an object” to “less specific view”. When we assign the instance of the Superclass to the Subclass, than it is called the Widening … Continue reading ABAP Casting: Narrow vs Widening Explained

NARROW AND WIDE CASTING IN SAP ABAP

When we assign the instance of the Subclass back to the instance of the Superclass, than it is called the “Narrow Casting”, because we are switching from a “More Specific view of an object” to “less specific view”. When we assign the instance of the Superclass to the Subclass, than it is called the Widening … Continue reading NARROW AND WIDE CASTING IN SAP ABAP