|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Object oriented programming (OOP) explained with an example
By Gaurab Banerji
a class that keeps track of a bank account balance. Then write a program to use
"Extra Credit": If you have extra time, try any of the following:
Step-by-step approach with screen-shots
Go to SE24 (Class builder)
Type in ZACCOUNTAA as the name of the class and press Create.
Define 3 methods DEPOSIT, SET_BALANCE and WITHDRAW.
Place the mouse cursor in DEPOSIT and hit the Parameters
Write the parameters imported / exported for DEPOSIT method.
Similarly for SET_BALANCE
For withdraw we define an exception.
We can see the attributes and methods by pressing “Display
object list” button on top.
Now we IMPLEMENT the 3 methods. Double click the method
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
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