{"id":76556,"date":"2025-01-02T01:15:35","date_gmt":"2025-01-02T01:15:35","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=76556"},"modified":"2025-01-02T01:15:35","modified_gmt":"2025-01-02T01:15:35","slug":"adapter-pattern","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=76556","title":{"rendered":"Adapter Pattern"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"362\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-3.png?resize=750%2C362\" alt=\"\" class=\"wp-image-76557\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-3.png?w=859 859w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-3.png?resize=300%2C145 300w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-3.png?resize=768%2C371 768w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-3.png?resize=750%2C362 750w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<p>Ref: Google Images<\/p>\n\n\n\n<p>If you have Access to Linkedin Courses: You can read from: It explains the diagram below i.e. how the adapter pattern works:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.linkedin.com\/learning\/programming-foundations-design-patterns-2\/the-adapter-pattern-defined?autoSkip=true&amp;resume=false&amp;u=2199673\">Explained the Diagram : https:\/\/www.linkedin.com\/learning\/programming-foundations-design-patterns-2\/the-adapter-pattern-defined?autoSkip=true&amp;resume=false&amp;u=2199673<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"256\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-4.png?resize=750%2C256\" alt=\"\" class=\"wp-image-76558\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-4.png?w=896 896w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-4.png?resize=300%2C102 300w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-4.png?resize=768%2C262 768w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-4.png?resize=750%2C256 750w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"281\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-5.png?resize=750%2C281\" alt=\"\" class=\"wp-image-76559\" style=\"width:1084px;height:auto\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-5.png?w=1008 1008w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-5.png?resize=300%2C113 300w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-5.png?resize=768%2C288 768w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-5.png?resize=750%2C281 750w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/www.tutorialspoint.com\/design_pattern\/adapter_pattern.htm\">Check the code from here:<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.tutorialspoint.com\/design_pattern\/adapter_pattern.htm\">https:\/\/www.tutorialspoint.com\/design_pattern\/adapter_pattern.htm<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/www.linkedin.com\/learning\/programming-foundations-design-patterns-2\/using-the-adapter-pattern?autoSkip=true&amp;resume=false&amp;u=2199673\">A video example: The above will be easy to understand<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.linkedin.com\/learning\/programming-foundations-design-patterns-2\/using-the-adapter-pattern?autoSkip=true&amp;resume=false&amp;u=2199673\">https:\/\/www.linkedin.com\/learning\/programming-foundations-design-patterns-2\/using-the-adapter-pattern?autoSkip=true&amp;resume=false&amp;u=2199673<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Using MediaAdapter, AudioPlayer is accessing the methods of AdvancedMediaPlayer<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"668\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-6.png?resize=541%2C668\" alt=\"\" class=\"wp-image-76560\" style=\"width:1151px;height:auto\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-6.png?w=541 541w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/01\/image-6.png?resize=243%2C300 243w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/figure>\n\n\n\n<p>Ref: <a href=\"https:\/\/www.tutorialspoint.com\/design_pattern\/adapter_pattern.htm\">https:\/\/www.tutorialspoint.com\/design_pattern\/adapter_pattern.htm<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ref: Google Images If you have Access to Linkedin Courses: You can read from: It explains the diagram below i.e. how the adapter pattern works: Explained the Diagram : https:\/\/www.linkedin.com\/learning\/programming-foundations-design-patterns-2\/the-adapter-pattern-defined?autoSkip=true&amp;resume=false&amp;u=2199673 Check the code from here: https:\/\/www.tutorialspoint.com\/design_pattern\/adapter_pattern.htm A video example: The above will be easy to understand https:\/\/www.linkedin.com\/learning\/programming-foundations-design-patterns-2\/using-the-adapter-pattern?autoSkip=true&amp;resume=false&amp;u=2199673 Using MediaAdapter, AudioPlayer is accessing the methods of &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=76556\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-76556","post","type-post","status-publish","format-standard","hentry","category-root","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":76250,"url":"http:\/\/bangla.sitestree.com\/?p=76250","url_meta":{"origin":76556,"position":0},"title":"Adapter Design Patterns","author":"Sayed","date":"August 21, 2024","format":false,"excerpt":"Adapter Design Patterns What is a design pattern? What is a Structural Design Pattern? What is an Adapter Design Pattern? What is the purpose of the Adapter Design Pattern? What is the category of the Adapter Design Pattern? Provide use cases where you can use a Adapter design pattern. How\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/08\/image.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/08\/image.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/08\/image.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/08\/image.png?resize=700%2C400 2x"},"classes":[]},{"id":78443,"url":"http:\/\/bangla.sitestree.com\/?p=78443","url_meta":{"origin":76556,"position":1},"title":"How to configure VirtualBox adapters for your GNS3 VM with GNS3 GUI.","author":"Sayed","date":"September 1, 2025","format":false,"excerpt":"How to configure VirtualBox adapters for your GNS3 VM with GNS3 GUI. Perfect! Here\u2019s a step-by-step guide to configure VirtualBox adapters for your GNS3 VM so everything communicates properly with your host and GNS3 GUI. Step 1: Open VirtualBox Settings for GNS3 VM Launch VirtualBox. Select your GNS3 VM \u2192\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76023,"url":"http:\/\/bangla.sitestree.com\/?p=76023","url_meta":{"origin":76556,"position":2},"title":"Proxy Pattern","author":"Sayed","date":"May 6, 2024","format":false,"excerpt":"Proxy Pattern: \u201cProxy is a structural design pattern that lets you provide a substitute or placeholder for another object. A proxy controls access to the original object, allowing you to perform something either before or after the request gets through to the original object.\u201d \u201cA credit card is a proxy\u2026","rel":"","context":"In &quot;Java Design Patterns and OOP&quot;","block_context":{"text":"Java Design Patterns and OOP","link":"http:\/\/bangla.sitestree.com\/?cat=1962"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-13.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":78414,"url":"http:\/\/bangla.sitestree.com\/?p=78414","url_meta":{"origin":76556,"position":3},"title":"Differences among Functional Diagrams, Activity Diagrams, Sequence Diagrams, and Class Diagrams? Why are these important in OOD and OOP.","author":"Sayed","date":"August 27, 2025","format":false,"excerpt":"Got it \ud83d\udc4d I\u2019ll structure everything into a clear comparison table that\u2019s easy to read and copyright-free for posting on your FB\/blog. \ud83d\udcd8 OOD & OOP Diagrams \u2013 Quick Comparison Diagram TypePurpose \/ FocusStatic or DynamicExample UseFunctional DiagramShows system functions and how data flows between them.Static (overview level)Mapping out major\u2026","rel":"","context":"In &quot;Enterprise Architect&quot;","block_context":{"text":"Enterprise Architect","link":"http:\/\/bangla.sitestree.com\/?cat=98"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-22.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-22.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-22.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-22.png?resize=700%2C400 2x"},"classes":[]},{"id":1296,"url":"http:\/\/bangla.sitestree.com\/?p=1296","url_meta":{"origin":76556,"position":4},"title":"Lecture-04: Introduction of PLC, Wiring Diagram, Basic ladder diagram. (\u09b2\u09c7\u0995\u099a\u09be\u09b0-\u09e6\u09ea: \u09aa\u09bf\u098f\u09b2\u09b8\u09bf, \u09a4\u09be\u09b0\u09c7\u09b0 \u09a8\u0995\u09b6\u09be, \u09ac\u09c7\u09b8\u09bf\u0995 \u09ae\u0987 \u09a1\u09be\u09af\u09bc\u09be\u0997\u09cd\u09b0\u09be\u09ae  \u098f\u09b0 \u09aa\u09b0\u09bf\u099a\u09bf\u09a4\u09bf)","author":"Author-Check- Article-or-Video","date":"April 20, 2013","format":false,"excerpt":"","rel":"","context":"In &quot;Academic&quot;","block_context":{"text":"Academic","link":"http:\/\/bangla.sitestree.com\/?cat=2"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76060,"url":"http:\/\/bangla.sitestree.com\/?p=76060","url_meta":{"origin":76556,"position":5},"title":"UML Collaboration Diagram","author":"Sayed","date":"May 12, 2024","format":false,"excerpt":"\"Collaboration diagrams (known as Communication Diagram in UML 2.x) are used to show how objects interact to perform the behavior of a particular use case, or a part of a use case. Along with sequence diagrams, collaboration are used by designers to define and clarify the roles of the objects\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76556"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76556\/revisions"}],"predecessor-version":[{"id":76561,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76556\/revisions\/76561"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76556"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}