Section 1/3Class Design Overview
Class Design Overview
Bank aggregates accounts (holds a list of references, does not own them).
Project: Bank System
Build a mini banking system from scratch using the OOP skills you have learned. This project brings together inheritance, encapsulation, accessors, aggregation, and dunder methods in one realistic application.
Class Design Overview
┌──────────────────────────┐
│ BankAccount │
├──────────────────────────┤
│ # _owner │
│ # _balance │
├──────────────────────────┤
│ + deposit(amount) │
│ + withdraw(amount) │
│ + get_balance() │
│ + __str__() │
└────────────┬─────────────┘
↓ inherits
┌──────────────────────────┐
│ SavingsAccount │
├──────────────────────────┤
│ # _interest_rate │
├──────────────────────────┤
│ + apply_interest() │
│ + __str__() │
└──────────────────────────┘Bank aggregates accounts (holds a list of references, does not own them).