Abstract Classes and Methods in Object Oriented Programming

...Previous

To define method "AREA" as an abstract method,  

Go to "Attributes" tab, check the check box "Abstract"  

When you click on the "Abstract" check box, pop-up window is displayed,

then press  button.  

Then press "Change" button.  

 

A successful message is displayed like "Method changed successfully"

 

Creating Sub Class:  

TCode: SE24  

Enter the name of class as 'Z_DEMO_ABS_SUB_CLASS' and press Create Button to create sub class  

 

A pop-up window is displayed, then select "Class" radio button and

Press enter  

 

It goes to next screen, here you enter the Description of the class and then

Select the inheritance button   , to inherit the super class then press    button

   

Enter the Super class name as "Z_DEMO_ABS_CLASS", which is being created earlier and press  button.  

 

The Attributes and methods defined in the super class will automatically come into the sub class. See the below screen shots.  

 

Go to the Methods tab, select the "AREA" method and click on

"Redefine" button  

If you are not Redefine the method and trying to activate the class, it gives syntax error.

Click here to continue...

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image