Search⌘ K

Challenge 1: Implement a Banking Account

Explore how to implement inheritance in Python by creating a parent Account class and a SavingsAccount child class. Learn to define instance variables, initializers, and utilize inheritance for reusable code structure in a banking scenario.

Problem statement

Implement the basic structure of a parent class, Account, and a child class, SavingsAccount.

Task 1

Implement properties as instance variables, and set them to None or 0.

Account has the following ...