<?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: 11.2 &#8212; Basic inheritance in C++</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 12:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Danni&#039;s Blog &#187; Blog Archive &#187; Inheritance</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-95182</link>
		<dc:creator>Danni&#039;s Blog &#187; Blog Archive &#187; Inheritance</dc:creator>
		<pubDate>Mon, 14 Feb 2011 21:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-95182</guid>
		<description>[...] Inheritance in C++    Category: Python &#160;&#124;&#160;&#160;Comment (RSS) &#160;&#124;&#160;&#160;Trackback [...]</description>
		<content:encoded><![CDATA[<p>[...] Inheritance in C++    Category: Python &nbsp;|&nbsp;&nbsp;Comment (RSS) &nbsp;|&nbsp;&nbsp;Trackback [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gammerz</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-91128</link>
		<dc:creator>Gammerz</dc:creator>
		<pubDate>Mon, 30 Aug 2010 22:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-91128</guid>
		<description>The answer to my question is in section 11.4 &quot;Constructors and Initialisation of Derived Classes&quot;</description>
		<content:encoded><![CDATA[<p>The answer to my question is in section 11.4 &#8220;Constructors and Initialisation of Derived Classes&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gammerz</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-90808</link>
		<dc:creator>Gammerz</dc:creator>
		<pubDate>Tue, 24 Aug 2010 17:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-90808</guid>
		<description>You can create a baseball player with batting average of 10 and home runs of 2 using constructors, thus:-
&lt;pre&gt;
BaseballPlayer cJoe(10, 2);
&lt;/pre&gt;

How would you create a &lt;b&gt;male&lt;/b&gt; baseball player with batting average of 10, home runs of 2, &lt;b&gt;name of &quot;Joe&quot; aged 20&lt;/b&gt; &lt;i&gt;using constructors&lt;/i&gt;?</description>
		<content:encoded><![CDATA[<p>You can create a baseball player with batting average of 10 and home runs of 2 using constructors, thus:-</p>
<pre>
BaseballPlayer cJoe(10, 2);
</pre>
<p>How would you create a <b>male</b> baseball player with batting average of 10, home runs of 2, <b>name of &#8220;Joe&#8221; aged 20</b> <i>using constructors</i>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C++ Tutorial and Online Ebook</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-87435</link>
		<dc:creator>C++ Tutorial and Online Ebook</dc:creator>
		<pubDate>Wed, 30 Jun 2010 01:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-87435</guid>
		<description>[...] 11.2 Basic inheritance in C++ [...]</description>
		<content:encoded><![CDATA[<p>[...] 11.2 Basic inheritance in C++ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edgeoftheworld</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-83692</link>
		<dc:creator>edgeoftheworld</dc:creator>
		<pubDate>Wed, 28 Apr 2010 00:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-83692</guid>
		<description>Thank you very much for your tutorials. They are a great help :).
-cheers.</description>
		<content:encoded><![CDATA[<p>Thank you very much for your tutorials. They are a great help :).<br />
-cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario_G</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-72435</link>
		<dc:creator>Mario_G</dc:creator>
		<pubDate>Tue, 17 Nov 2009 03:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-72435</guid>
		<description>In Employee Class
&lt;pre&gt;long m_lEmployeeID;&lt;/pre&gt;

In Supervisor Class
&lt;pre&gt;int m_nOverseesIDs[5];&lt;/pre&gt;

If the supervisor m_nOversseesIDs will store mlEmployeeID; ok it might work because both are 4bytes long, but will it be more clear if it uses the same type ?</description>
		<content:encoded><![CDATA[<p>In Employee Class</p>
<pre>long m_lEmployeeID;</pre>
<p>In Supervisor Class</p>
<pre>int m_nOverseesIDs[5];</pre>
<p>If the supervisor m_nOversseesIDs will store mlEmployeeID; ok it might work because both are 4bytes long, but will it be more clear if it uses the same type ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhuiguang Liu</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-70976</link>
		<dc:creator>Zhuiguang Liu</dc:creator>
		<pubDate>Sat, 24 Oct 2009 23:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-70976</guid>
		<description>Line 14 of Person class, line 9 of BaseballPlayer class, and line 10 of Employee class really has something that I don&#039;t understand and I don&#039;t see an explanation of...

What is the : in front of those new functions supposed to mean?

I understand that declaring an inheritance relationship between classes use : operator...but what of this case?</description>
		<content:encoded><![CDATA[<p>Line 14 of Person class, line 9 of BaseballPlayer class, and line 10 of Employee class really has something that I don&#8217;t understand and I don&#8217;t see an explanation of&#8230;</p>
<p>What is the : in front of those new functions supposed to mean?</p>
<p>I understand that declaring an inheritance relationship between classes use : operator&#8230;but what of this case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-34044</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 09 Dec 2008 17:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-34044</guid>
		<description>It&#039;s correct as is.  Declaring an array with [5] means there are 5 elements, numbered 0 through 4.</description>
		<content:encoded><![CDATA[<p>It&#8217;s correct as is.  Declaring an array with [5] means there are 5 elements, numbered 0 through 4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: o.o!</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-34036</link>
		<dc:creator>o.o!</dc:creator>
		<pubDate>Tue, 09 Dec 2008 15:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-34036</guid>
		<description>class Supervisor: public Employee  
{  
public:  
    // This Supervisor can oversee a max of 5 employees  
    int m_nOverseesIDs[5];  // &lt;== [4]?
};</description>
		<content:encoded><![CDATA[<p>class Supervisor: public Employee<br />
{<br />
public:<br />
    // This Supervisor can oversee a max of 5 employees<br />
    int m_nOverseesIDs[5];  // &lt;== [4]?<br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/comment-page-1/#comment-28052</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 21 Sep 2008 18:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/112-basic-inheritance-in-c/#comment-28052</guid>
		<description>It&#039;s better to leave it as a tree if you can.  Although it technically doesn&#039;t have to be (using multiple inheritance), things stay much simpler if it is a tree.</description>
		<content:encoded><![CDATA[<p>It&#8217;s better to leave it as a tree if you can.  Although it technically doesn&#8217;t have to be (using multiple inheritance), things stay much simpler if it is a tree.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

