<?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 Abhibhavya Gupta on Medium]]></title>
        <description><![CDATA[Stories by Abhibhavya Gupta on Medium]]></description>
        <link>https://medium.com/@abhibhavya.gupta2005?source=rss-31081a7091b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dY8nND04-Wz-OebK</url>
            <title>Stories by Abhibhavya Gupta on Medium</title>
            <link>https://medium.com/@abhibhavya.gupta2005?source=rss-31081a7091b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:27:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhibhavya.gupta2005/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[Classes and Interfaces in Java [ Classes Covered ]]]></title>
            <link>https://medium.com/@abhibhavya.gupta2005/classes-and-interfaces-in-java-classes-covered-37c771206ca7?source=rss-31081a7091b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/37c771206ca7</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[interfaces-in-java]]></category>
            <category><![CDATA[classes-in-java]]></category>
            <dc:creator><![CDATA[Abhibhavya Gupta]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 01:31:29 GMT</pubDate>
            <atom:updated>2026-01-05T01:31:29.726Z</atom:updated>
            <content:encoded><![CDATA[<h3>Classes and Interfaces in Java</h3><p>Imagine you are a Car mechanic and one day you made a Blueprint/Prototype of a super car (of your fav car). Now when you have the Blueprint, you can make as many cars you want and can have fun. Notice here — that you cannot get your work done(any type of output) with the Blueprint you made earlier but you can do whatever you want as soon as you made the Real/Physical object(Cars) out of that Blueprint.</p><blockquote>By the same analogy, In Java —</blockquote><p>Blueprints are “Classes” and The Real Cars are “Objects”.</p><p>Classes themselves doesn’t do anything untill you make an object out of it.</p><h3>Syntax of a Class :</h3><p>class Car{</p><blockquote>// here we provide the necessary properties of a car</blockquote><p>String model;</p><p>int mileage;</p><p>float price;</p><blockquote>// we can also make constructor inside the class implementation, notice that constructor name should match with that of class name</blockquote><p>public Car(String model, float price){</p><p>this.model = model;</p><p>this.price = price;</p><p>}</p><blockquote>// we can make any number of constructor according to our need, notice here that creation of more than 1( default constructor — public Car(){ … } ) will lead to a situation called “Method Overloading or Constructor Overloading”</blockquote><blockquote>// we can also create methods inside a class and we call them via objects</blockquote><p>public void Run(){</p><p>System.out.println(“car is running”);</p><p>}</p><p>}</p><blockquote>// creating(instantiating) an objects inside main</blockquote><p>public static void main(String[] args){</p><p>Car mycar = new Car(“Audi A6&quot;, 25828.72);</p><p>System.out.println(mycar.model);</p><blockquote>//Audi A6</blockquote><blockquote>mycar.mileage = 17;</blockquote><p>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37c771206ca7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>