|
||||
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us | ||||
SAP Virtual/Onsite TrainingsDocument Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
Object oriented programming (OOP) explained with an exampleBy Gaurab Banerji Create
a class that keeps track of a bank account balance. Then write a program to use
this class. Steps involved:
"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
button.
Write the parameters imported / exported for DEPOSIT method. Similarly for SET_BALANCE
And WITHDRAW
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
DEPOSIT. ![]() |
|||
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 |
||||
![]() |
![]() |