---
title: "Discussion on \"Week 4 - Object-Oriented Design (Encapsulation & Cohesion, Inheritance & Module)\" | Hashnode"
description: "Discussion on \"Week 4 - Object-Oriented Design (Encapsulation & Cohesion, Inheritance & Module)\". Encapsulation\nWe break our programs up into multiple objects to control complexity. So how do we decide which methods and variables should live in which objects?\nExample 1\nBank\n  get_balance\n  credit_account(date, amount)\n  debit_account(date, amount..."
url: "https://hashnode.com/posts/week-4-object-oriented-design-encapsulation-and-cohesion-inheritance-and-module/5fe0c4837cd4e55d1d465cc6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Week 4 - Object-Oriented Design (Encapsulation & Cohesion, Inheritance & Module)](https://miochung.hashnode.dev/week-4-object-oriented-design-encapsulation-and-cohesion-inheritance-and-module?utm_source=hashnode&utm_medium=feed)

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...

Dec 21, 2020 · 8 min read · miochung.hashnode.dev  
Read the article

-   [#bootcamp](https://hashnode.com/tag/bootcamp)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#ruby](https://hashnode.com/tag/ruby)
-   [#classes](https://hashnode.com/tag/classes)

## Written by

[Mio Chung](https://hashnode.com/@Mio)

@Mio

  
[View profile](https://hashnode.com/@Mio)

Makers Academy student

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
