Week 02
Week 02
04 05 06
OOP Practical Problem
Vocabulary Example! Solving
1 What’s OOP:
Attributes: Methods:
• Color. • ChangePrice()
• Size. • ChangeSize()
• Style.
• Price.
Class Object
• In the Main method, create two Battery objects and set the
energy field for each of them to 100.
• Then print the name, id, salary value for each Employee.
• Afterward, call the Bonus method to add amount 1000 for each
of them as bonus. Then again print the name, id, salary value for
each Employee.
Thanks!
Do you have any questions?
[email protected]