<?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.6 &#8212; Adding, changing, and hiding members in a derived class</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Sep 2010 10:51:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: C++ Tutorial and Online Ebook</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-87415</link>
		<dc:creator>C++ Tutorial and Online Ebook</dc:creator>
		<pubDate>Wed, 30 Jun 2010 01:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-87415</guid>
		<description>[...] 11.6 Adding, changing, and hiding members in a derived class [...]</description>
		<content:encoded><![CDATA[<p>[...] 11.6 Adding, changing, and hiding members in a derived class [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tylerfb11</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-84462</link>
		<dc:creator>tylerfb11</dc:creator>
		<pubDate>Tue, 11 May 2010 20:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-84462</guid>
		<description>Which occurance are you refering to?
BTW, I&#039;m terible with grammar and such in Engilsh (my first language) but I can still code in C++. I just don&#039;t really care a whole lot about proper &#039;santax&#039; in everyday language becuase, with a little bit of common scence, anyone can esaliy figure out what you&#039;re trying to say.

-Tyler</description>
		<content:encoded><![CDATA[<p>Which occurance are you refering to?<br />
BTW, I&#8217;m terible with grammar and such in Engilsh (my first language) but I can still code in C++. I just don&#8217;t really care a whole lot about proper &#8217;santax&#8217; in everyday language becuase, with a little bit of common scence, anyone can esaliy figure out what you&#8217;re trying to say.</p>
<p>-Tyler</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pintsize</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-84452</link>
		<dc:creator>Pintsize</dc:creator>
		<pubDate>Tue, 11 May 2010 13:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-84452</guid>
		<description>typo:

It’s also common [b]to[/b] for developers to release header files containing class definitions

Thanks again for this absolutely wonderful tutorials!</description>
		<content:encoded><![CDATA[<p>typo:</p>
<p>It’s also common [b]to[/b] for developers to release header files containing class definitions</p>
<p>Thanks again for this absolutely wonderful tutorials!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-79191</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Sat, 27 Feb 2010 02:52:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-79191</guid>
		<description>Please learn to spell &quot;its&quot; without an apostrophe. I cannot understand how someone could purport to understand the arcane syntax of C++, yet remain indifferent to the straightforward English syntax of apostrophes.</description>
		<content:encoded><![CDATA[<p>Please learn to spell &#8220;its&#8221; without an apostrophe. I cannot understand how someone could purport to understand the arcane syntax of C++, yet remain indifferent to the straightforward English syntax of apostrophes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-76634</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Sun, 17 Jan 2010 04:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-76634</guid>
		<description>In the paragraph you start with &quot;A word of warning...&quot; It&#039;s said that the type of the  returned value by the function in the Base class must be the same type in the Derived class in order the compiler to not to issue an error, well, I&#039;ve tried changing it and I&#039;ve got no error, may it be dependent of the compiler used? or may be it is an overloaded function or a new definition of it in the Derived class!</description>
		<content:encoded><![CDATA[<p>In the paragraph you start with &#8220;A word of warning&#8230;&#8221; It&#8217;s said that the type of the  returned value by the function in the Base class must be the same type in the Derived class in order the compiler to not to issue an error, well, I&#8217;ve tried changing it and I&#8217;ve got no error, may it be dependent of the compiler used? or may be it is an overloaded function or a new definition of it in the Derived class!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-69750</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Sun, 04 Oct 2009 09:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-69750</guid>
		<description>in line 736: &lt;pre&gt; When a member function is called with a derived class object, the the compiler...&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>in line 736:
<pre> When a member function is called with a derived class object, the the compiler...</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Supreame</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-62548</link>
		<dc:creator>Supreame</dc:creator>
		<pubDate>Wed, 17 Jun 2009 08:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-62548</guid>
		<description>&lt;cite&gt; If the return value does not match, the compiler will issue an error. &lt;/cite&gt;
The return value of the Identify() function in the Derived class dosen&#039;t have to be identical with the return value of Identify() from Base class . I tested it with VC Express 2008 compiler:
&lt;pre&gt;
     int Identify() { cout &lt;&lt; &quot;I am a Derived&quot; &lt;&lt; endl; return 0;}
&lt;!--formatted--&gt;&lt;/pre&gt;
and it compiles ok.

Another thing, after cDerived.Identify() you forgot a &quot;;&quot; in this code part
&lt;pre&gt;
int main()
{
    Base cBase(5);
    cBase.Identify();

    Derived cDerived(7);
    cDerived.Identify()

    return 0;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><cite> If the return value does not match, the compiler will issue an error. </cite><br />
The return value of the Identify() function in the Derived class dosen&#8217;t have to be identical with the return value of Identify() from Base class . I tested it with VC Express 2008 compiler:</p>
<pre>
     int Identify() { cout &lt;&lt; &quot;I am a Derived&quot; &lt;&lt; endl; return 0;}
<!--formatted--></pre>
<p>and it compiles ok.</p>
<p>Another thing, after cDerived.Identify() you forgot a &#8220;;&#8221; in this code part</p>
<pre>
int main()
{
    Base cBase(5);
    cBase.Identify();

    Derived cDerived(7);
    cDerived.Identify()

    return 0;
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-34211</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 11 Dec 2008 07:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-34211</guid>
		<description>If derived1 does private inheritance, than derived2 can&#039;t access anything from the base class, as you say.

If derived1 uses protected inheritance, then public and protected members in the base class become protected in derived1.  This means that they can be accessed by derived2.  Note that neither derived1 nor derived2 can access private members in base.

In reality, it is pretty uncommon to see private and protected inheritance.  Almost all of the inheritance you see is done via public inheritance.</description>
		<content:encoded><![CDATA[<p>If derived1 does private inheritance, than derived2 can&#8217;t access anything from the base class, as you say.</p>
<p>If derived1 uses protected inheritance, then public and protected members in the base class become protected in derived1.  This means that they can be accessed by derived2.  Note that neither derived1 nor derived2 can access private members in base.</p>
<p>In reality, it is pretty uncommon to see private and protected inheritance.  Almost all of the inheritance you see is done via public inheritance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kinten</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-34050</link>
		<dc:creator>Kinten</dc:creator>
		<pubDate>Tue, 09 Dec 2008 18:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-34050</guid>
		<description>Multiple inheritance was&#039;t the right word, it shold be &quot;multiple times derived&quot;</description>
		<content:encoded><![CDATA[<p>Multiple inheritance was&#8217;t the right word, it shold be &#8220;multiple times derived&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kinten</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/comment-page-1/#comment-34049</link>
		<dc:creator>Kinten</dc:creator>
		<pubDate>Tue, 09 Dec 2008 18:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-34049</guid>
		<description>ok, the only diference in private and protected inheritance is while making multiple inheritances? say yo got:

base --&gt; derived1 --&gt; derived2 (diagram)

if derived1 does &lt;b&gt;Private&lt;/b&gt; inheritance then derived2 can&#039;t acces anything from base class, otherwise if I make derived1 &lt;b&gt;Protected&lt;/b&gt; derived2 will have acces, but not the program.
I am right?</description>
		<content:encoded><![CDATA[<p>ok, the only diference in private and protected inheritance is while making multiple inheritances? say yo got:</p>
<p>base &#8211;&gt; derived1 &#8211;&gt; derived2 (diagram)</p>
<p>if derived1 does <b>Private</b> inheritance then derived2 can&#8217;t acces anything from base class, otherwise if I make derived1 <b>Protected</b> derived2 will have acces, but not the program.<br />
I am right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
