| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
Abstract Classes and Methods in Object Oriented ProgrammingBy Dharani Prasanna, IBM India Abstract
Class: Classes
which contain one or more abstract methods or abstract properties, such methods
or properties do not provide implementation. These abstract methods or
properties are implemented in the derived classes Abstract classes does not
create any instances to that class objects Use
of Abstract class: We can define some common
functionalities in Abstract class (Super-class) and those can be used in derived
classes (Sub classes). Step-by-Step
Approach to create Abstract classes and Methods TCode: SE24 Enter the name of class as
'Z_DEMO_ABS_CLASS' and press Create Button
A pop-up window is
displayed, then select "Class" radio button and Press enter
It will go to the next
screen. Here you enter the
Description of the class and then select "Abstract" from Instantiation
Drop down list to define the class an abstract class, Then click on save
Go to the
"Attributes" tab, Enter the Attribute name,
Level, Visibility, Type and Description as shown in the screen shot.
Go to Methods tab, Enter Method name, Level,
Visibility and Description as shown in the below screen shot
Double click on the Method
name "AREA"; it goes to method Implementation screen.
Go to Menu path, then Goto
-> Method definition
Pop-up window is displayed.
It gives complete information of the method
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||