---
title: "Discussion on \"Inheritance vs Composition\" | Hashnode"
description: "Discussion on \"Inheritance vs Composition\". With the introduction of OOPs, Inheritance and Composition entered our senses and still confusing us.\nChoosing between Composition and Inheritance is not easy. Often, the decision depends upon the information which is not yet there.\nThe structure of ..."
url: "https://hashnode.com/posts/oops-inheritance-vs-composition/5fe9fbd05283d44a62c71ee6"
---

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

Discussion

# [Inheritance vs Composition](https://dm8typrorammer.hashnode.dev/oops-inheritance-vs-composition?utm_source=hashnode&utm_medium=feed)

With the introduction of OOPs, Inheritance and Composition entered our senses and still confusing us. Choosing between Composition and Inheritance is not easy. Often, the decision depends upon the information which is not yet there. The structure of ...

Dec 28, 2020 · 7 min read · dm8typrorammer.hashnode.dev  
Updated Dec 29, 2020  
Read the article

-   [#inheritance](https://hashnode.com/tag/inheritance)
-   [#programing](https://hashnode.com/tag/programing)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)

## Written by

[The Mighty Programmer](https://hashnode.com/@DM8typrogrammer)

@DM8typrogrammer · India

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

## Responses 1

Markdown supported · ⌘↵ to post

[Maxi Contieri](https://hashnode.com/@mcsee)

[Dec 29, 2020](https://hashnode.com/posts/oops-inheritance-vs-composition/5fe9fbd05283d44a62c71ee6/comment/5feb1b2316e33056644be68d)

Great article!
