Methods are internal procedures in a class that defines the behavior of an object. Methods can access all class attributes that allows to change the object data content.
Author Archives: Admin
Constructors are special methods that are called automatically while creating an object or instantiated (accessing the class components) first time.
Constructor gets triggered when an object is created.
Events are functions that are triggered based on the result of a condition.
Events are used by Objects or classes to trigger event handler methods in other objects or classes.
Any number of event handler methods can be called when an event is triggered.
The link between a trigger and its handler method is decided dynamically at run-time.
Objects establish the key concept in object oriented programming.
An object is a self-contained unit that has its own status, behavior and identity.
Objects are patterns or instances of classes.
An object has the following three main characteristics −
INTERFACES are like classes and act as data types for Objects.
Interfaces are independent structures that can extend the functionality of the class.
Encapsulation is an object-oriented programming concept that binds the code/functions and data together to manipulate the data.
Encapsulation keeps code/functions and data both safe from outside interference and misuse.
Inheritance is one of the most important object-oriented programming concept.
Inheritance allows to derive a new class from an existing class.
Inheritance allows user to define the new class with the characteristics of the existing class which is already defined.
Using inheritance, the methods in the super class can redefine in subclass by using a reference variable that address the superclass objects.
The redefined methods can have different implementation in subclass from base class.
When the super class addressed, the method has original implementation.
When the subclass addressed, the method has a new and different implementation.
Using a single reference variable to call the same named methods that are behaving differently called polymorphism.
What is Exception? Exception is an runtime errors that occurs during the program execution. The runtime errors can be of two types – Catchable Runtime Errors which can be caught using the exception handling. Non-Catchable Runtime Errors which always results the termination of program. Normally exceptions might occur due to performing an invalid operation or […]
Attributes are internal data fields within a class that can be declared with any ABAP data type such as C, I, F and N. The object state is determined by its attributes contents.
