<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Polymorphism on Samarthya</title><link>https://samarthya.me/tags/polymorphism/</link><description>Recent content in Polymorphism on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Thu, 02 Feb 2023 12:00:00 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/polymorphism/index.xml" rel="self" type="application/rss+xml"/><item><title>Python: Polymorphism</title><link>https://samarthya.me/posts/python-polymorphism/</link><pubDate>Thu, 02 Feb 2023 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/python-polymorphism/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Animal base class with make_sound, and Dog and Cat subclasses returning Bark and Meow"&#10; width="1200"&#10; height="630"&#10; src="https://samarthya.me/posts/python-polymorphism/pypoly_hu_80a53db7deb7e932.png"&#10; srcset="https://samarthya.me/posts/python-polymorphism/pypoly_hu_80a53db7deb7e932.png 800w, https://samarthya.me/posts/python-polymorphism/pypoly.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/python-polymorphism/pypoly.png"&gt;&lt;figcaption&gt;Recreated in October 2026 from the post; the original image was lost&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;Polymorphism is a key feature of Object Oriented Programming that allows objects of different classes to be treated as objects of a common class. It is done by implementing the same methods across all classes and making use of inheritance, interfaces and overloading.&lt;/p&gt;</description></item></channel></rss>