OOP Exercises

OOP Exercises#

Create a class called PersonAccount. It has firstname, lastname, incomes, and expenses properties. It also has total_income(), total_expense(), account_info(), add_income(), add_expense() and account_balance() methods. Incomes is a set of income amount and its description. The same goes for expenses.

Reference:

  1. Classes

  2. Sets

  3. Student Grade Program