Build a Bank Account System with Overdraft Rules
60 min · Medium
Need help? Ask a tutor on WhatsApp (opens in a new tab)Every bank has account types that share deposits and withdrawals but differ in rules such as interest and overdraft.
What you will learn
What you will learn
- Share behaviour in a base class and change it in subclasses
- Override one method so each account type applies its own rule
- Raise and catch custom exceptions that carry useful data
- Record every transaction in a history list
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.