---
title: "Discussion on \"Inheritance vs Composition\" | Hashnode"
description: "Discussion on \"Inheritance vs Composition\". Object-oriented programming (OOP) is a popular paradigm that encourages modular, reusable, and maintainable code. Two fundamental concepts within OOP are inheritance and composition. While both play crucial roles in designing software systems, they o..."
url: "https://hashnode.com/posts/inheritance-vs-composition/64d52af8e646c79002388b4d"
---

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

Discussion

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

Object-oriented programming (OOP) is a popular paradigm that encourages modular, reusable, and maintainable code. Two fundamental concepts within OOP are inheritance and composition. While both play crucial roles in designing software systems, they o...

Aug 10, 2023 · 3 min read · divijsehgal.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#oops](https://hashnode.com/tag/oops)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Divij Sehgal](https://hashnode.com/@Divij2509)

@Divij2509 · Punjab,IN

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

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
