---
title: "Discussion on \"Part 06: Decorator Design Pattern\" | Hashnode"
description: "Discussion on \"Part 06: Decorator Design Pattern\". Decorator pattern can help avoid multiple sub classes and stuffing all the logic inside a single class. Let's learn it together with the help of an example"
url: "https://hashnode.com/posts/part-06-decorator-design-pattern/611685d473a6cd48b7f18d7e"
---

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

Discussion

# [Part 06: Decorator Design Pattern](https://omamazainab.hashnode.dev/part-06-decorator-design-pattern?utm_source=hashnode&utm_medium=feed)

Decorator pattern can help avoid multiple sub classes and stuffing all the logic inside a single class. Let's learn it together with the help of an example

Aug 13, 2021 · 5 min read · omamazainab.hashnode.dev  
Updated Aug 15, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#womenwhocode](https://hashnode.com/tag/womenwhocode)

## Written by

[Omama Zainab](https://hashnode.com/@omamazainab)

@omamazainab · Karachi, Pakistan

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

JavaScript developer

I'm a software engineer Woman technologist. I ❤ JS, blogging, beaches, rooftops, pasta &amp; @saraikium. I'm currently learning Rust too &amp; I'm lovin' it.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
