<?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: 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>
	<pubDate>Fri, 29 Aug 2008 19:15:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-20687</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 11 Jul 2008 02:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-20687</guid>
		<description>Yes, I renamed the function and forgot to update the text.  Functions that begin with "Get" are usually accessor functions that return a value.  Since this one didn't, I renamed it Identify().</description>
		<content:encoded><![CDATA[<p>Yes, I renamed the function and forgot to update the text.  Functions that begin with &#8220;Get&#8221; are usually accessor functions that return a value.  Since this one didn&#8217;t, I renamed it Identify().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weirdolino</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-20538</link>
		<dc:creator>weirdolino</dc:creator>
		<pubDate>Tue, 08 Jul 2008 15:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-20538</guid>
		<description>&lt;cite&gt;"When cDerived.GetClassName() is called, the compiler looks..."&lt;/cite&gt;

There is no GetClassName() function. I suppose it was what you originally wanted to name Identify()(?). Also, there's a typo in the next line &lt;cite&gt;"Then it starts looks in the inherited classes..."&lt;/cite&gt;</description>
		<content:encoded><![CDATA[<p><cite>&#8220;When cDerived.GetClassName() is called, the compiler looks&#8230;&#8221;</cite></p>
<p>There is no GetClassName() function. I suppose it was what you originally wanted to name Identify()(?). Also, there&#8217;s a typo in the next line <cite>&#8220;Then it starts looks in the inherited classes&#8230;&#8221;</cite></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 11.5 &#8212; Inheritance and access specifiers</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-14422</link>
		<dc:creator>Learn C++ - &#187; 11.5 &#8212; Inheritance and access specifiers</dc:creator>
		<pubDate>Mon, 05 May 2008 02:19:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-14422</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; Alex&#8217;s Threaded Comments Wordpress Plugin v0.1 &#124; Home &#124; 11.6 &#8212; Adding, changing, and hiding members in a derived class &#187;     Monday, January 14th, 2008 at 1:09 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; Alex&#8217;s Threaded Comments Wordpress Plugin v0.1 | Home | 11.6 &#8212; Adding, changing, and hiding members in a derived class &raquo;     Monday, January 14th, 2008 at 1:09 [...]</p>
]]></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-6973</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 01 Feb 2008 00:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-6973</guid>
		<description>Note that Derived inherits Base publicly.  This means that m_nValue would normally be inherited publicly.  However, in the example, we overrode the access specifier to change it to private.

Instead of inheriting Base publicly, we could have inherited Base privately.  This would cause all of Base's members to be inherited as private, which would essentially have the same effect.

I changed the wording slightly to try to make this point clearer.</description>
		<content:encoded><![CDATA[<p>Note that Derived inherits Base publicly.  This means that m_nValue would normally be inherited publicly.  However, in the example, we overrode the access specifier to change it to private.</p>
<p>Instead of inheriting Base publicly, we could have inherited Base privately.  This would cause all of Base&#8217;s members to be inherited as private, which would essentially have the same effect.</p>
<p>I changed the wording slightly to try to make this point clearer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zafer</title>
		<link>http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-6967</link>
		<dc:creator>Zafer</dc:creator>
		<pubDate>Thu, 31 Jan 2008 23:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/116-adding-changing-and-hiding-members-in-a-derived-class/#comment-6967</guid>
		<description>I think the following statement about the last example is confusing: "Note that this allowed us to take a poorly designed base class and encapsulate it's data in our derived class (alternatively, we could have inherited it privately instead)."

The data is already inherited as private. Why did you say alternatively?</description>
		<content:encoded><![CDATA[<p>I think the following statement about the last example is confusing: &#8220;Note that this allowed us to take a poorly designed base class and encapsulate it&#8217;s data in our derived class (alternatively, we could have inherited it privately instead).&#8221;</p>
<p>The data is already inherited as private. Why did you say alternatively?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
