{"id":158539,"date":"2019-08-23T02:33:00","date_gmt":"2019-08-22T18:33:00","guid":{"rendered":"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/?guid=dc8e364dd176b28dd2b794dc2790275a"},"modified":"2019-08-23T02:33:00","modified_gmt":"2019-08-22T18:33:00","slug":"polymorphism-and-inheritance-in-java","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2019\/08\/23\/polymorphism-and-inheritance-in-java\/","title":{"rendered":"Polymorphism and inheritance in Java"},"content":{"rendered":"<article>\n<section class=\"page\">\n<p>According to the legend <a href=\"https:\/\/twitter.com\/venkat_s\" rel=\"nofollow\">Venkat Subramaniam<\/a>, polymorphism is the most important concept in object-oriented programming. <i>Polymorphism<\/i>&#8211;or the ability of an object to execute specialized actions based on its type&#8211;is what makes Java code flexible. Design patterns like <a href=\"https:\/\/nobugsproject.com\/2017\/07\/16\/design-patterns-saga-7-real-project-situations-with-command\/\" rel=\"nofollow\">Command<\/a>, <a href=\"https:\/\/nobugsproject.com\/2017\/10\/27\/design-patterns-saga-20-real-world-situations-with-observer\/\" rel=\"nofollow\">Observer<\/a>, <a href=\"https:\/\/nobugsproject.com\/2017\/09\/24\/design-patterns-saga-17-real-project-situations-with-decorator\/\" rel=\"nofollow\">Decorator<\/a>, <a href=\"https:\/\/nobugsproject.com\/2017\/06\/03\/design-patterns-saga-1-real-project-situations-with-factory-method-and-strategy\/\" rel=\"nofollow\">Strategy<\/a>, and many others created by the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Design_Patterns\" rel=\"nofollow\">Gang Of Four<\/a>, all use some form of polymorphism. Mastering this concept greatly improves your ability to think through solutions to programming challenges.<\/p>\n<p class=\"jumpTag\"><a href=\"https:\/\/www.javaworld.com\/article\/3290403\/java-challengers-3-polymorphism-and-inheritance.html#jump\">To read this article in full, please click here<\/a><\/p>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>According to the legend Venkat Subramaniam, polymorphism is the most important concept in object-oriented programming. Polymorphism&#8211;or the ability of an object to execute specialized actions based on its type&#8211;is what makes Java code flexible. Desi&#8230; <a href=\"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2019\/08\/23\/polymorphism-and-inheritance-in-java\/\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":169,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"slim_seo":[],"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2,315,7],"tags":[398,402,397,414,413,410,409,407,408,406,399,400,394,318,558,560,555,561,566,553,554,586,585,563,562,567,524,232,10,401,396,381,403,412,411,395,405,404,457,454,320,319,316],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7prtj-Ff5","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/158539"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/users\/169"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/comments?post=158539"}],"version-history":[{"count":0,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/158539\/revisions"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/media?parent=158539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/categories?post=158539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/tags?post=158539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}