---
title: "Discussion on \"Adapter Pattern\" | Hashnode"
description: "Discussion on \"Adapter Pattern\". Why Adapter Pattern\n\nSolution\n\nClass Diagram\n\nObject and Class adapter\nAbove class diagram is for object adapter, below is class adapter.\n\n\nObject uses composition, class uses subclassing.\n\nLet's take a example of Enumeration and Iterator. Task is to..."
url: "https://hashnode.com/posts/adapter-pattern/65049f3dfa1007734b0c7d5e"
---

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

Discussion

# [Adapter Pattern](https://struglingblogs.hashnode.dev/adapter-pattern?utm_source=hashnode&utm_medium=feed)

Why Adapter Pattern Solution Class Diagram Object and Class adapter Above class diagram is for object adapter, below is class adapter. Object uses composition, class uses subclassing. Let's take a example of Enumeration and Iterator. Task is to...

Sep 15, 2023 · 1 min read · struglingblogs.hashnode.dev  
Read the article

-   [#notes](https://hashnode.com/tag/notes)

## Written by

[Shreyash Chavhan](https://hashnode.com/@Shreyash1999)

@Shreyash1999

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

Tech Software Engineer at UBS

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
