<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tushant on Medium]]></title>
        <description><![CDATA[Stories by Tushant on Medium]]></description>
        <link>https://medium.com/@tushant?source=rss-3e4e1b1a6504------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_p3Ak546EL2oxGn40nEreg.png</url>
            <title>Stories by Tushant on Medium</title>
            <link>https://medium.com/@tushant?source=rss-3e4e1b1a6504------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 16:46:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tushant/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Simple Anatomy of Python Class and Object]]></title>
            <link>https://medium.com/@tushant/simple-anatomy-of-python-class-and-object-f7b595d8302b?source=rss-3e4e1b1a6504------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7b595d8302b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[object-oriented]]></category>
            <dc:creator><![CDATA[Tushant]]></dc:creator>
            <pubDate>Wed, 20 Dec 2017 04:25:17 GMT</pubDate>
            <atom:updated>2017-12-20T04:25:17.678Z</atom:updated>
            <content:encoded><![CDATA[<p>I have seen several times, a beginner asking about classes and objects. I myself was bewildered with those terms in my class so I thought of writing this simple article. This is my eventual purpose to make beginner lucid on what is class, object and method. I will be continuing the object oriented part gradually. I try to write as short as i can. Nobody likes to read long post. At least I don’t like to. For now lets go into what is python, class, object and method.</p><p><strong>What is Python? Why should we use it?</strong></p><p>Python is a high-level, object oriented programming language. It’s a general purpose programming language which is meant for developing any applications. However, Python is great for <em>data science, web development,<br>artificial intelligence and scientific computing</em>. Python has become the best choice for the startup companies.</p><p>The reason for incorporating python is it’s a simple yet effective high-level, object oriented programming language like I previously mentioned.<br>It is apt for rapid application development. It’s simplicity is a catalyst for building large application in short period of time. Python has a myriad of active communities.Data scientists, Startups have begun to embrace Python for their work. Moreover, the learning curve is gentle.</p><p><strong>Class and Object</strong></p><p>Class is basically a blueprint for an object or a group of similar object. You might wonder, what is an object though? Technically, an object is simply a collection of data and methods, where data is the variables and methods is a function. An object is also called an instance of a class and such process of creating an object is coined as instantiation.</p><p>Let’s understand class and object with <em>real life example</em></p><p>If we take an example of ourselves, Human Being itself is a class. Aforementioned, class refers to a group of object. Now, what can<br>be the objects for the class Human Being? The objects can be Third Gender, Male, Female.</p><p>1)<strong>Human Being</strong><br> Third Gender<br> Male<br> Female</p><p>let us take two more example</p><p>2)<strong> Family</strong><br> Father<br> Mother<br> Son<br> Daughter</p><p>Here Family is the class and Father, Mother, Son, Daughter are the objects.</p><p>3) <strong>Dog</strong><br> Labrador<br> German Shepherd<br> Boxer<br> Bulldog<br> Beagle</p><p>Here Dog is the class and Labrador, German Shepherd and so on are the objects.</p><p>Above example clearly exhibits that Object is a real world entity having its own distinct character and behavior and class is a group of those objects which share a common characteristic and behavior.</p><p>I have been talking about methods when defining the term objects. What exactly is <strong>methods</strong> then? Methods are akin to functions, with few differences:<br><em> Methods are defined inside a class where the first argument for a method is an instance of class<br> The syntax for invoking a method is different from the syntax for invoking a function</em></p><p>Let’s create one simple example of class considering all the terms we raised</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_eUjbroTyOIjB8PimKmUnA.jpeg" /></figure><p>If you reckon, the post is educational enough, please do give some claps and share. <strong>Human Knowledge Belongs To the World.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b595d8302b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>