Step1. Here is the program. So here we have the O/P. Create object statement calls the constructor and then when it tries to access the
Author: coderobbot
OO-ABAP Events
Step1. Go to Tx- SE24 and create a Class. Step2. Provide the details and Save. Step3. Provide a method name and click on Parameters name.
Casting of Objects
Type of Casting: 1. Narrowing Cast( Upcasting):- When we assign the instance of the Sub class back to the instance of the Super class, than it
Use of SUPER keyword
Step1. Create a program and define the constructor in both the super and sub class. Constructor is always executed form the super class to
Use of ME Keyword
Step1. Create a proram in Tx- SE38. Step2. Execute the program and we find the below output. Step3. Now declare a local variable within the
OO EXCEPTION- CX_NO_CHECK
Exception class- CX_NO_CHECK Exceptions that are defined using sub classes of CX_NO_CHECK may not be explicitly declared in the interface of the procedure. Class