---
title: "Discussion on \"Composition over Inheritance: My refactoring recipe\" | Hashnode"
description: "Discussion on \"Composition over Inheritance: My refactoring recipe\". \"Composition over Inheritance\": Mostly agreed upon, often neglected."
url: "https://hashnode.com/posts/composition-over-inheritance-my-refactoring-recipe/65f8a1e7722e538d30baa927"
---

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

Discussion

# [Composition over Inheritance: My refactoring recipe](https://blog.sellmair.io/composition-over-inheritance-my-refactoring-recipe?utm_source=hashnode&utm_medium=feed)

"Composition over Inheritance": Mostly agreed upon, often neglected.

Mar 18, 2024 · 14 min read · blog.sellmair.io  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#composition](https://hashnode.com/tag/composition)
-   [#composition-over-inheritance](https://hashnode.com/tag/composition-over-inheritance)
-   [#composition-vs-inheritance](https://hashnode.com/tag/composition-vs-inheritance)

## Written by

[Sebastian Sellmair](https://hashnode.com/@sellmair)

@sellmair

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

Kotlin Multiplatform Amper Gradle

Working on Kotlin at JetBrains.

## Responses 1

Markdown supported · ⌘↵ to post

[Alejandro Rios](https://hashnode.com/@alejandrorios)

[May 7, 2024](https://hashnode.com/posts/composition-over-inheritance-my-refactoring-recipe/65f8a1e7722e538d30baa927/comment/663a8dbc6419f23f8ecf66e7)

On Step 6, you're declaring ManualSaveJsonFileGameStateSaver with true, should it be false, right?
