{"id":21642,"date":"2021-03-03T20:41:01","date_gmt":"2021-03-04T01:41:01","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/strategy-pattern-interface-vs-abstract-classes-web-development-by-sayed-ahmed\/"},"modified":"2021-03-03T20:41:01","modified_gmt":"2021-03-04T01:41:01","slug":"strategy-pattern-interface-vs-abstract-classes-web-development-by-sayed-ahmed","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=21642","title":{"rendered":"Strategy Pattern: Interface vs Abstract Classes #Web Development #By Sayed Ahmed"},"content":{"rendered":"<p><strong>Strategy Pattern: https:\/\/en.wikipedia.org\/wiki\/Strategy_pattern<\/strong><\/p>\n<p>&#8220;In <a title=\"Computer programming\" href=\"https:\/\/en.wikipedia.org\/wiki\/Computer_programming\">computer programming<\/a>, the <b>strategy pattern<\/b> (also known as the <b>policy pattern<\/b>) is a <a class=\"mw-redirect\" title=\"Design pattern (computer science)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Design_pattern_%28computer_science%29\">software design pattern<\/a> that enables an <a title=\"Algorithm\" href=\"https:\/\/en.wikipedia.org\/wiki\/Algorithm\">algorithm<\/a>&#8216;s behavior to be selected at runtime. &#8221;<\/p>\n<p>&#8220;The validation strategies, encapsulated separately from the validating object, may be used by other validating objects in different areas of the system (or even different systems) without code duplication.&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Abstract Classes vs Interfaces<\/strong><\/p>\n<p>http:\/\/www.javaworld.com\/article\/2077421\/learn-java\/abstract-classes-vs-interfaces.html<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp; From: http:\/\/sitestree.com\/?p=1146<br \/> Categories:Web Development, By Sayed Ahmed<br \/>Tags:<br \/> Post Data:2014-07-01 18:29:56<\/p>\n<p>\t\tShop Online: https:\/\/www.ShopForSoul.com\/<br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses:http:\/\/Training.SitesTree.com<br \/>\n\t\tBlog: http:\/\/Bangla.SaLearningSchool.com<br \/>\n\t\thttp:\/\/SitesTree.com<br \/>\n\t\t8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning)<br \/>\n\t\tShop Online: https:\/\/www.ShopForSoul.com\/<br \/>\n\t\tMedium: https:\/\/medium.com\/@SayedAhmedCanada<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Strategy Pattern: https:\/\/en.wikipedia.org\/wiki\/Strategy_pattern &#8220;In computer programming, the strategy pattern (also known as the policy pattern) is a software design pattern that enables an algorithm&#8216;s behavior to be selected at runtime. &#8221; &#8220;The validation strategies, encapsulated separately from the validating object, may be used by other validating objects in different areas of the system (or even &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=21642\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-21642","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":23311,"url":"http:\/\/bangla.sitestree.com\/?p=23311","url_meta":{"origin":21642,"position":0},"title":"Laravel Design Patterns &#8211; Sure, I did Check them #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 29, 2021","format":false,"excerpt":"Laravel Design Patterns - Sure, I did Check them...Will create videos in near future... https:\/\/laracasts.com\/discuss\/channels\/laravel\/what-design-patterns-used-for-laravel-framework https:\/\/www.dunebook.com\/brief-overview-of-design-patterns-used-in-laravel\/ http:\/\/www.mahmoudzalt.com\/blog\/software-design-patterns\/ http:\/\/stackoverflow.com\/questions\/30569727\/using-design-patterns-in-laravel-5 http:\/\/stackoverflow.com\/questions\/27349154\/using-the-factory-pattern-in-php-and-laravel https:\/\/en.wikipedia.org\/wiki\/SOLID_(object-oriented_design) http:\/\/www.oodesign.com\/dependency-inversion-principle.html http:\/\/7php.com\/php-interview-taylor-otwell\/ http:\/\/stackoverflow.com\/questions\/757743\/what-is-the-difference-between-builder-design-pattern-and-factory-design-pattern https:\/\/www.quora.com\/What-are-the-best-design-patterns-to-use-in-Laravel-4 http:\/\/www.dofactory.com\/topic\/1590\/factory-pattern-vs-abstract-factory-pattern.aspx http:\/\/www.dofactory.com\/topic\/1590\/factory-pattern-vs-abstract-factory-pattern.aspx http:\/\/code.tutsplus.com\/tutorials\/design-patterns-the-strategy-pattern--cms-22796 https:\/\/msdn.microsoft.com\/en-us\/library\/ff649690.aspx From: http:\/\/sitestree.com\/?p=3953 Categories:Root, By Sayed AhmedTags: Post Data:2016-09-01 22:26:37 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22527,"url":"http:\/\/bangla.sitestree.com\/?p=22527","url_meta":{"origin":21642,"position":1},"title":"PHP Design Pattern Resources #Root #By Sayed Ahmed #Misc. Reading","author":"Author-Check- Article-or-Video","date":"March 15, 2021","format":false,"excerpt":"http:\/\/www.tutorialspoint.com\/design_pattern\/decorator_pattern.htm http:\/\/www.fluffycat.com\/PHP-Design-Patterns\/ http:\/\/programmers.stackexchange.com\/questions\/7055\/what-is-the-most-frequently-used-design-pattern http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=893 http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=987 Abstract Factory: https:\/\/sourcemaking.com\/design_patterns\/abstract_factory\/php\/2 Decorator Pattern: http:\/\/www.tutorialspoint.com\/design_pattern\/decorator_pattern.htm Singleton: http:\/\/stackoverflow.com\/questions\/8776788\/best-practice-on-php-singleton-classes http:\/\/stackoverflow.com\/questions\/203336\/creating-the-singleton-design-pattern-in-php5\/203359#203359 https:\/\/ttmm.io\/tech\/making-singletons-safe-in-php\/ Java http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=858 From: http:\/\/sitestree.com\/?p=3921 Categories:Root, By Sayed Ahmed, Misc. ReadingTags: Post Data:2016-09-15 14:08:19 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22529,"url":"http:\/\/bangla.sitestree.com\/?p=22529","url_meta":{"origin":21642,"position":2},"title":"Resources Checked Recently on PHP, OOP, OOD, Java, Angular, Bootstrap, Design Patterns #Root #By Sayed Ahmed #Misc. Reading","author":"Author-Check- Article-or-Video","date":"March 15, 2021","format":false,"excerpt":"Resources Checked Recently on PHP, OOP, OOD, Java, Angular, Bootstrap, Design Patterns http:\/\/www.fluffycat.com\/PHP-Design-Patterns\/PHP-Job-Interview-Questions\/ http:\/\/php.net\/manual\/en\/language.oop5.object-comparison.php http:\/\/www.programmerinterview.com\/index.php\/design-pattern-questions\/design-pattern-interview-questions-and-answers\/ https:\/\/www.glassdoor.co.in\/Interview\/canada-software-developer-interview-questions-SRCH_IL.0,6_IN3_KO7,25.htm http:\/\/www.tutorialspoint.com\/design_pattern\/decorator_pattern.htm http:\/\/www.fluffycat.com\/PHP-Design-Patterns\/ http:\/\/programmers.stackexchange.com\/questions\/7055\/what-is-the-most-frequently-used-design-pattern http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=893 http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=987 Abstract Factory: https:\/\/sourcemaking.com\/design_patterns\/abstract_factory\/php\/2 Decorator Pattern: http:\/\/www.tutorialspoint.com\/design_pattern\/decorator_pattern.htm Singleton: http:\/\/stackoverflow.com\/questions\/8776788\/best-practice-on-php-singleton-classes http:\/\/stackoverflow.com\/questions\/203336\/creating-the-singleton-design-pattern-in-php5\/203359#203359 https:\/\/ttmm.io\/tech\/making-singletons-safe-in-php\/ Java http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=858 http:\/\/stackoverflow.com\/questions\/9948008\/what-is-sapi-and-when-would-you-use-it Cookie - securing Cookie http:\/\/blog.teamtreehouse.com\/how-to-create-totally-secure-cookies http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=1357&title=PHP%20Security%20-%20Guidelines https:\/\/www.quora.com\/What-is-the-difference-between-htmlentities-and-htmlspecialchars-in-PHP http:\/\/stackoverflow.com\/questions\/46483\/htmlentities-vs-htmlspecialchars Prevent CSRF in PHP http:\/\/stackoverflow.com\/questions\/1780687\/preventing-csrf-in-php PHP Security Package:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78427,"url":"http:\/\/bangla.sitestree.com\/?p=78427","url_meta":{"origin":21642,"position":3},"title":"Builder Pattern vs \u2699\ufe0f Factory Pattern in Java","author":"Sayed","date":"August 28, 2025","format":false,"excerpt":"From AI Tools\/Open AI\/ChatGPT \" Perfect \ud83d\udc4d Here\u2019s a copyright-free comparison table of the Builder Pattern vs Factory Pattern in Java, styled for easy posting on Facebook\/Blog: \ud83c\udfd7\ufe0f Builder Pattern vs \u2699\ufe0f Factory Pattern in Java AspectBuilder PatternFactory PatternTypeCreational design patternCreational design patternPurposeTo construct complex objects step by step with\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\/2025\/08\/image-27.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-27.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-27.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-27.png?resize=700%2C400 2x"},"classes":[]},{"id":78430,"url":"http:\/\/bangla.sitestree.com\/?p=78430","url_meta":{"origin":21642,"position":4},"title":"Factory Pattern vs \ud83c\udfed Abstract Factory Pattern in Java","author":"Sayed","date":"August 28, 2025","format":false,"excerpt":"Abstract Factory Pattern Example in Java From: AI Tools\/OpenAI\/Chatgpt \" Perfect \ud83d\udc4d Let me give you a clean, copyright-free Abstract Factory Pattern Java example with explanation. \ud83c\udfed Abstract Factory Pattern Example in Java Problem: We want to create UI components (Button, Checkbox) for different operating systems (Windows and Mac). The\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\/2025\/08\/image-28.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-28.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-28.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-28.png?resize=700%2C400 2x"},"classes":[]},{"id":78099,"url":"http:\/\/bangla.sitestree.com\/?p=78099","url_meta":{"origin":21642,"position":5},"title":"Java Creational Design Patterns","author":"Sayed","date":"May 4, 2025","format":false,"excerpt":"5 types of creational design patterns: Factory Design Patterns: Purpose: Create Objects, Keep Object Creation Centralized Abstract Factory Design Patterns Singleton Design Pattern: Limit instantiation\u00a0 of a clas to only one instance Prototype Design Patterns: Object creation based on Prototype Object Instance; Simpler Object Creation than Factory. Builder Design Patterns:\u2026","rel":"","context":"In &quot;Root&quot;","block_context":{"text":"Root","link":"http:\/\/bangla.sitestree.com\/?cat=1"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-3.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-3.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-3.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-3.png?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/21642","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\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21642"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/21642\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21642"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}