<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Overloading vs Overriding</title>
	<atom:link href="http://javapapers.com/core-java/overloading-and-overriding/feed/" rel="self" type="application/rss+xml" />
	<link>http://javapapers.com/core-java/overloading-and-overriding/</link>
	<description>Blog on core java, servlets, jsp and design patterns.</description>
	<lastBuildDate>Mon, 04 Jun 2012 02:04:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: sathya</title>
		<link>http://javapapers.com/core-java/overloading-and-overriding/#comment-11907</link>
		<dc:creator>sathya</dc:creator>
		<pubDate>Fri, 11 May 2012 17:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=195#comment-11907</guid>
		<description>Good explanation with nice examle   
thank uuuuuu sir</description>
		<content:encoded><![CDATA[<p>Good explanation with nice examle<br />
thank uuuuuu sir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raju</title>
		<link>http://javapapers.com/core-java/overloading-and-overriding/#comment-11550</link>
		<dc:creator>Raju</dc:creator>
		<pubDate>Thu, 26 Apr 2012 17:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=195#comment-11550</guid>
		<description>Nitin given this example to explain overriding but i have a doubt in this below example that is &quot;What is the use of extending A class in B?&quot; without extending that class also we will get the same result na... 


Overriding simplest example

class A
{
void calculate(int x, int y)
{
int sum=x+y;
System.out.println(“sum is: “+sum);
}
}
public class B extends A
{
void calculate(int x, int y)
{
int product=x*y;
System.out.println(“product is: “+product);
}
public static void main(String arg[])
{
B b=new B();
b.calculate(5,4);
}
}

Run this code o/p will be 20</description>
		<content:encoded><![CDATA[<p>Nitin given this example to explain overriding but i have a doubt in this below example that is &#8220;What is the use of extending A class in B?&#8221; without extending that class also we will get the same result na&#8230; </p>
<p>Overriding simplest example</p>
<p>class A<br />
{<br />
void calculate(int x, int y)<br />
{<br />
int sum=x+y;<br />
System.out.println(“sum is: “+sum);<br />
}<br />
}<br />
public class B extends A<br />
{<br />
void calculate(int x, int y)<br />
{<br />
int product=x*y;<br />
System.out.println(“product is: “+product);<br />
}<br />
public static void main(String arg[])<br />
{<br />
B b=new B();<br />
b.calculate(5,4);<br />
}<br />
}</p>
<p>Run this code o/p will be 20</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://javapapers.com/core-java/overloading-and-overriding/#comment-11488</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 23 Apr 2012 22:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=195#comment-11488</guid>
		<description>thank u sir

loving example and awlanationesome exp</description>
		<content:encoded><![CDATA[<p>thank u sir</p>
<p>loving example and awlanationesome exp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhi shukla</title>
		<link>http://javapapers.com/core-java/overloading-and-overriding/#comment-11401</link>
		<dc:creator>abhi shukla</dc:creator>
		<pubDate>Thu, 19 Apr 2012 18:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=195#comment-11401</guid>
		<description>thnks sir nyc explaination...........</description>
		<content:encoded><![CDATA[<p>thnks sir nyc explaination&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijay</title>
		<link>http://javapapers.com/core-java/overloading-and-overriding/#comment-11332</link>
		<dc:creator>Vijay</dc:creator>
		<pubDate>Mon, 16 Apr 2012 12:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=195#comment-11332</guid>
		<description>Awesome explaination...thanks</description>
		<content:encoded><![CDATA[<p>Awesome explaination&#8230;thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prakash</title>
		<link>http://javapapers.com/core-java/overloading-and-overriding/#comment-11199</link>
		<dc:creator>prakash</dc:creator>
		<pubDate>Mon, 09 Apr 2012 05:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=195#comment-11199</guid>
		<description>nice</description>
		<content:encoded><![CDATA[<p>nice</p>
]]></content:encoded>
	</item>
</channel>
</rss>

