Week 4 - Object-Oriented Design (Encapsulation & Cohesion, Inheritance & Module)
Encapsulation
We break our programs up into multiple objects to control complexity. So how do we decide which methods and variables should live in which objects?
Example 1
Bank
get_balance
credit_account(date, amount)
debit_account(date, amount...
miochung.hashnode.dev8 min read