<?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 for Artem&#039;s blog</title>
	<atom:link href="http://artemgolubev.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://artemgolubev.com</link>
	<description>Thoughts on software</description>
	<lastBuildDate>Thu, 01 Dec 2011 17:41:46 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Why do I need inheritance in OOP? Real-world examples. by dude</title>
		<link>http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/comment-page-1/#comment-203</link>
		<dc:creator>dude</dc:creator>
		<pubDate>Thu, 01 Dec 2011 17:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/#comment-203</guid>
		<description>what is missing in your example, and what is on the main reasons to have polymorphism in the first place is this class:

public class PetTrainer {
 public void makeMyPetTalk(Pet p) {
  p.say();
 }
}

As you can see, PetTrainer can make any Pet talk - cats, dogs or even tigers that might come in the future.</description>
		<content:encoded><![CDATA[<p>what is missing in your example, and what is on the main reasons to have polymorphism in the first place is this class:</p>
<p>public class PetTrainer {<br />
 public void makeMyPetTalk(Pet p) {<br />
  p.say();<br />
 }<br />
}</p>
<p>As you can see, PetTrainer can make any Pet talk &#8211; cats, dogs or even tigers that might come in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why do I need inheritance in OOP? Real-world examples. by Artem</title>
		<link>http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/comment-page-1/#comment-202</link>
		<dc:creator>Artem</dc:creator>
		<pubDate>Mon, 28 Nov 2011 08:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/#comment-202</guid>
		<description>Awaisdar:
The reason why the same code won&#039;t work without correction in C# is the following:
in Java all methods are virtual by default, compare to C# where in order to make them virtual you have to specify &quot;virtual&quot; keyword. The following program is C# version of the example code:

using System;

namespace Test
{
    public class Pet {
        public virtual void say() { }
    }

    public class  Dog : Pet {
        public override void say() { Console.WriteLine(&quot;I am a dog.&quot;); }
    }

    public class  Cat : Pet {
        public override void say() { Console.WriteLine(&quot;I am a cat.&quot;); }
    }

    class Program
    {
        static void Main(string[] args)
        {
            Pet pet1 = new Dog();
            Pet pet2 = new Cat();
            pet1.say();
            pet2.say();
            Console.ReadKey();
        }
    }
}</description>
		<content:encoded><![CDATA[<p>Awaisdar:<br />
The reason why the same code won&#8217;t work without correction in C# is the following:<br />
in Java all methods are virtual by default, compare to C# where in order to make them virtual you have to specify &#8220;virtual&#8221; keyword. The following program is C# version of the example code:</p>
<p>using System;</p>
<p>namespace Test<br />
{<br />
    public class Pet {<br />
        public virtual void say() { }<br />
    }</p>
<p>    public class  Dog : Pet {<br />
        public override void say() { Console.WriteLine(&#8221;I am a dog.&#8221;); }<br />
    }</p>
<p>    public class  Cat : Pet {<br />
        public override void say() { Console.WriteLine(&#8221;I am a cat.&#8221;); }<br />
    }</p>
<p>    class Program<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            Pet pet1 = new Dog();<br />
            Pet pet2 = new Cat();<br />
            pet1.say();<br />
            pet2.say();<br />
            Console.ReadKey();<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why do I need inheritance in OOP? Real-world examples. by awaisdar</title>
		<link>http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/comment-page-1/#comment-201</link>
		<dc:creator>awaisdar</dc:creator>
		<pubDate>Fri, 25 Nov 2011 04:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/#comment-201</guid>
		<description>in c# after
  Pet pet1 = new Dog();
            cat pet22 = new cat();
 when i called
pet1.say();// it shows the say method of Pet class not of dog class.
and pent22.say();//shows the Cat class&#039;s say method.

???????????????????</description>
		<content:encoded><![CDATA[<p>in c# after<br />
  Pet pet1 = new Dog();<br />
            cat pet22 = new cat();<br />
 when i called<br />
pet1.say();// it shows the say method of Pet class not of dog class.<br />
and pent22.say();//shows the Cat class&#8217;s say method.</p>
<p>???????????????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating Web 2.0 RIA applications with Flex and Rails by Albulescu Cosmin</title>
		<link>http://artemgolubev.com/creating-web-20-ria-applications-with-flex-and-rails/comment-page-1/#comment-198</link>
		<dc:creator>Albulescu Cosmin</dc:creator>
		<pubDate>Thu, 06 Oct 2011 07:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/creating-web-20-ria-applications-with-flex-and-rails/#comment-198</guid>
		<description>Hi, very nice post. Very usefull</description>
		<content:encoded><![CDATA[<p>Hi, very nice post. Very usefull</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook&#8217;s most annoying issues 2 by Vlad Z (AX guy from Kharkov)</title>
		<link>http://artemgolubev.com/facebook-issues-part-2/comment-page-1/#comment-195</link>
		<dc:creator>Vlad Z (AX guy from Kharkov)</dc:creator>
		<pubDate>Wed, 31 Aug 2011 17:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/?p=95#comment-195</guid>
		<description>You&#039;re right Artem, now  it&#039;s being a couple of months already and I don&#039;t see much improvements since (maybe Facebook via Skype access but Skype itself has some annoying new &quot;features&quot;:) 

And so often these people responsible for feedback to R&amp;D who read (and answer!) &quot;flame&quot; blogs often don&#039;t seem to react with product updates.

Personally I really like Google in how quickly it adapts to the users needs.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right Artem, now  it&#8217;s being a couple of months already and I don&#8217;t see much improvements since (maybe Facebook via Skype access but Skype itself has some annoying new &#8220;features&#8221;:) </p>
<p>And so often these people responsible for feedback to R&amp;D who read (and answer!) &#8220;flame&#8221; blogs often don&#8217;t seem to react with product updates.</p>
<p>Personally I really like Google in how quickly it adapts to the users needs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why do I need inheritance in OOP? Real-world examples. by Vlad Z (AX guy from Kharkov)</title>
		<link>http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/comment-page-1/#comment-194</link>
		<dc:creator>Vlad Z (AX guy from Kharkov)</dc:creator>
		<pubDate>Wed, 31 Aug 2011 16:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/#comment-194</guid>
		<description>I was skimming through the comments people say and, in fact, this is a quite good and simple example of why to use so-called Liskov principle. You can always generally call Pet-&gt;say() via Pet base-class pointer not caring what subclass it actually represents (Dog, Cat or Bird). This is good and right practice in OOP.

http://en.wikipedia.org/wiki/Liskov_substitution_principle</description>
		<content:encoded><![CDATA[<p>I was skimming through the comments people say and, in fact, this is a quite good and simple example of why to use so-called Liskov principle. You can always generally call Pet-&gt;say() via Pet base-class pointer not caring what subclass it actually represents (Dog, Cat or Bird). This is good and right practice in OOP.</p>
<p><a href="http://en.wikipedia.org/wiki/Liskov_substitution_principle" rel="nofollow">http://en.wikipedia.org/wiki/Liskov_substitution_principle</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating Web 2.0 RIA applications with Flex and Rails by Addison Wood</title>
		<link>http://artemgolubev.com/creating-web-20-ria-applications-with-flex-and-rails/comment-page-1/#comment-193</link>
		<dc:creator>Addison Wood</dc:creator>
		<pubDate>Thu, 28 Jul 2011 04:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/creating-web-20-ria-applications-with-flex-and-rails/#comment-193</guid>
		<description>BTW your story was tweeted by Christian Dillstrom -  you must be doing a sweet job as mobile and social media marketing god is pointing towards you?</description>
		<content:encoded><![CDATA[<p>BTW your story was tweeted by Christian Dillstrom &#8211;  you must be doing a sweet job as mobile and social media marketing god is pointing towards you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why do I need inheritance in OOP? Real-world examples. by shaan rizvi</title>
		<link>http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/comment-page-1/#comment-191</link>
		<dc:creator>shaan rizvi</dc:creator>
		<pubDate>Thu, 21 Jul 2011 03:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/#comment-191</guid>
		<description>you have need explanation of this topic with the help of daily life example..........</description>
		<content:encoded><![CDATA[<p>you have need explanation of this topic with the help of daily life example&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sun Certified Enterprise Architect (SCEA) for Java Platform, Enterprise Edition 5 by Tracy</title>
		<link>http://artemgolubev.com/sun-certified-enterprise-architect-scea-for-java-platform-enterprise-edition-5/comment-page-1/#comment-187</link>
		<dc:creator>Tracy</dc:creator>
		<pubDate>Tue, 29 Mar 2011 03:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/sun-certified-enterprise-architect-scea-for-java-platform-enterprise-edition-5/#comment-187</guid>
		<description>Very Good Job! Congratulations!!</description>
		<content:encoded><![CDATA[<p>Very Good Job! Congratulations!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why do I need inheritance in OOP? Real-world examples. by Manzoor</title>
		<link>http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/comment-page-1/#comment-178</link>
		<dc:creator>Manzoor</dc:creator>
		<pubDate>Thu, 17 Feb 2011 06:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://artemgolubev.com/why-do-i-need-inheritance-in-oop-real-world-examples/#comment-178</guid>
		<description>Its simple and need more explanation.</description>
		<content:encoded><![CDATA[<p>Its simple and need more explanation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

