<?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"
	>
<channel>
	<title>Comments on: 12.1 &#8212; Pointers and references to the base class of derived objects</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/</link>
	<description></description>
	<pubDate>Wed, 20 Aug 2008 08:57:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Ben</title>
		<link>http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-23054</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 07 Aug 2008 12:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-23054</guid>
		<description>P.S.: I wrapped code tags around my code, but they were somehow removed.</description>
		<content:encoded><![CDATA[<p>P.S.: I wrapped code tags around my code, but they were somehow removed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-23052</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 07 Aug 2008 12:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-23052</guid>
		<description>In the big example above "Use for pointers and references to base classes" (The one with the Dog and the Cat), you got this snippet of code:

  ...
  Animal* pAnimal = &#38;cCat;
  std::cout &#60;&#60; &#34;pAnimal is named &#34; &#60;&#60; pAnimal-&#62;GetName()
            &#60;&#60; &#34; and it says &#34; &#60;&#60; pAnimal-&#62;Speak()
            &#60;&#60; std::endl;

  Animal* pAnimal = &#38;cDog;
  ...
&lt;!--formatted--&gt;
So pAnimal is declared twice. The second declaration should be changed to:
pAnimal = &#038;cDog;

Ben</description>
		<content:encoded><![CDATA[<p>In the big example above &#8220;Use for pointers and references to base classes&#8221; (The one with the Dog and the Cat), you got this snippet of code:</p>
<p>  &#8230;<br />
  Animal* pAnimal = &amp;cCat;<br />
  std::cout &lt;&lt; &quot;pAnimal is named &quot; &lt;&lt; pAnimal-&gt;GetName()<br />
            &lt;&lt; &quot; and it says &quot; &lt;&lt; pAnimal-&gt;Speak()<br />
            &lt;&lt; std::endl;</p>
<p>  Animal* pAnimal = &amp;cDog;<br />
  &#8230;<br />
<!--formatted--><br />
So pAnimal is declared twice. The second declaration should be changed to:<br />
pAnimal = &cDog;</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nassos Katsadim</title>
		<link>http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-17589</link>
		<dc:creator>Nassos Katsadim</dc:creator>
		<pubDate>Mon, 26 May 2008 20:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-17589</guid>
		<description>Thank you for this tutorial. This is a fantastic prephase for understanding how late binding and polymorphism works</description>
		<content:encoded><![CDATA[<p>Thank you for this tutorial. This is a fantastic prephase for understanding how late binding and polymorphism works</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 11.8 &#8212; Virtual base classes</title>
		<link>http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-14425</link>
		<dc:creator>Learn C++ - &#187; 11.8 &#8212; Virtual base classes</dc:creator>
		<pubDate>Mon, 05 May 2008 02:23:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-14425</guid>
		<description>[...]  12.1 â€” Pointers and references to the base class of derived objects [...]</description>
		<content:encoded><![CDATA[<p>[...]  12.1 â€” Pointers and references to the base class of derived objects [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 12.2 -- Virtual functions</title>
		<link>http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-6898</link>
		<dc:creator>Learn C++ - &#187; 12.2 -- Virtual functions</dc:creator>
		<pubDate>Wed, 30 Jan 2008 23:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/#comment-6898</guid>
		<description>[...] 12.1 &#8212; Pointers and references to the base class of derived objects [...]</description>
		<content:encoded><![CDATA[<p>[...] 12.1 &#8212; Pointers and references to the base class of derived objects [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
