Professional Documents
Culture Documents
Oops Abap
Oops Abap
● Unstructured Programming.
● Procedural Programming.
● Object Oriented Programming.
Extensibility Relatively more time consuming to New data and functions can be easily
modify for extending existing added whenever necessary
functionality.
An object consists of :
Instance methods:
X ● Can use both static and instance components
in the implementation part
I R ● Can be called using the instance name.
Method
Static methods:
X ● Can only use static components in the
I – Import Parameters E-Export implementation part
Parameters ● Can be called using the class name.
C – Changing Parameters R- Returning
Parameters
Clonut Solutions Pvt Ltd
X - Exceptions
Defining and calling methods Example
Static Constructor
● Single constructor for a class.
● Before the class is accessed for the first time.
● Must be in the public visibility area.
Clonut Solutions Pvt Ltd
● No parameters and exceptions are allowed.
Constructor Example
Output
START-OF-SELECTION.
c2=>num = 7.
write:/5 c1=>num . Clonut Solutions Pvt Ltd
Inheritance -> Instance Constructors