<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Akash Damahe</title>
    <description>The latest articles on DEV Community by Akash Damahe (@c2akash).</description>
    <link>https://dev.to/c2akash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2592334%2F6240765d-7f67-4cf9-aaef-3c3cd06c278b.png</url>
      <title>DEV Community: Akash Damahe</title>
      <link>https://dev.to/c2akash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/c2akash"/>
    <language>en</language>
    <item>
      <title>Decorator Pattern</title>
      <dc:creator>Akash Damahe</dc:creator>
      <pubDate>Thu, 19 Dec 2024 18:30:15 +0000</pubDate>
      <link>https://dev.to/c2akash/decorator-pattern-4dde</link>
      <guid>https://dev.to/c2akash/decorator-pattern-4dde</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj9zgcl6sdbzo7hmyk7y1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj9zgcl6sdbzo7hmyk7y1.png" alt="Decorator Design Pattern by CodeQuack" width="800" height="655"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Decorator Pattern is a structural design pattern that allows adding new behavior to objects dynamically by wrapping them in decorator objects. This provides a more flexible alternative to inheritance for extending object functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key points of the Decorator Pattern:
&lt;/h2&gt;

&lt;p&gt;Component: Defines the common interface for objects that can have additional responsibilities dynamically added.&lt;br&gt;
Concrete Component: Implements the component interface, representing the original object being decorated.&lt;br&gt;
Decorator: Maintains a reference to a component object and implements the component interface.&lt;br&gt;
Concrete Decorator: Extends the functionality of the component by adding new behavior before or after delegating operations to the component.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>javascript</category>
      <category>typescript</category>
      <category>designpatterns</category>
    </item>
  </channel>
</rss>
