Search⌘ K

Challenge 2: Handling a Bank Account

Practice applying inheritance in Python by implementing key bank account methods like balance retrieval, deposits, withdrawals, and calculating interest for savings accounts. Understand how to structure reusable parent and child classes to manage account functionality effectively.

Problem statement

In this challenge, we will implement methods in the parent class and its corresponding child class.

The initializers for both classes have been defined for you.

Task 1

In the Account class, implement the getBalance() method that returns balance.

Task 2

In the Account class, implement ...