<?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: 10.3 &#8212; Aggregation</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/103-aggregation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/</link>
	<description></description>
	<pubDate>Thu, 24 Jul 2008 16:26:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: STommY</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-21074</link>
		<dc:creator>STommY</dc:creator>
		<pubDate>Wed, 16 Jul 2008 22:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-21074</guid>
		<description>I'm not sure whether the statement above will call the constructor you defined, as the signatures do not match, and so the default constructor will be called.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure whether the statement above will call the constructor you defined, as the signatures do not match, and so the default constructor will be called.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-20722</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Fri, 11 Jul 2008 10:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-20722</guid>
		<description>Duh, it seems obvious now. LOL.

Thanks. ;D</description>
		<content:encoded><![CDATA[<p>Duh, it seems obvious now. LOL.</p>
<p>Thanks. ;D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-20693</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 11 Jul 2008 02:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-20693</guid>
		<description>It's assigned NULL as a default parameter just in case the programmer wants to create a department with no teacher.  For example:

&lt;pre&gt;
Department cDept;
&lt;/pre&gt;

In this case cDept would call the Department constructor with pcTeacher set to NULL.  This NULL value would then be assigned to cDept.m_pcTeacher by the constructor.</description>
		<content:encoded><![CDATA[<p>It&#8217;s assigned NULL as a default parameter just in case the programmer wants to create a department with no teacher.  For example:</p>
<pre>
Department cDept;
</pre>
<p>In this case cDept would call the Department constructor with pcTeacher set to NULL.  This NULL value would then be assigned to cDept.m_pcTeacher by the constructor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-20662</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Thu, 10 Jul 2008 21:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-20662</guid>
		<description>Alex, I don't understand why the pointer pcTeacher is assigned NULL as a Department constructor parameter, because it assigns to the address of the pTeacher pointer when an object of Department is instantiated. It seems like it's never a null pointer. (?)</description>
		<content:encoded><![CDATA[<p>Alex, I don&#8217;t understand why the pointer pcTeacher is assigned NULL as a Department constructor parameter, because it assigns to the address of the pTeacher pointer when an object of Department is instantiated. It seems like it&#8217;s never a null pointer. (?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 10.2 &#8212; Composition</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-14415</link>
		<dc:creator>Learn C++ - &#187; 10.2 &#8212; Composition</dc:creator>
		<pubDate>Mon, 05 May 2008 02:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-14415</guid>
		<description>[...] Posts   &#171; A.5 &#8212; Debugging your program (watching variables and the call stack) &#124; Home &#124; 10.3 &#8212; Aggregation &#187;     Tuesday, December 4th, 2007 at 2:55 [...]</description>
		<content:encoded><![CDATA[<p>[...] Posts   &laquo; A.5 &#8212; Debugging your program (watching variables and the call stack) | Home | 10.3 &#8212; Aggregation &raquo;     Tuesday, December 4th, 2007 at 2:55 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-11321</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 10 Apr 2008 01:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-11321</guid>
		<description>Yep.  It's just another class defined somewhere else.  Probably in another header that's included by Department.cpp.

Edit: I went ahead and defined a Teacher class just above the Department class so people can compile the example if they want.</description>
		<content:encoded><![CDATA[<p>Yep.  It&#8217;s just another class defined somewhere else.  Probably in another header that&#8217;s included by Department.cpp.</p>
<p>Edit: I went ahead and defined a Teacher class just above the Department class so people can compile the example if they want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-11275</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 09 Apr 2008 18:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-11275</guid>
		<description>typo: "When cDept is destroyed, the m_pcTeacher pointer &lt;b&gt;is&lt;/b&gt; destroyed"

Where does the Teacher variable type get declared? Anywhere outside the aggregate class?</description>
		<content:encoded><![CDATA[<p>typo: &#8220;When cDept is destroyed, the m_pcTeacher pointer <b>is</b> destroyed&#8221;</p>
<p>Where does the Teacher variable type get declared? Anywhere outside the aggregate class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-10607</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 30 Mar 2008 18:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-10607</guid>
		<description>It's really personal preference how you do your hungarian notation.  When it comes to pointers (or references), I use p (or r), then the letter denoting the type of the class, then the variable name.  Thus, a pointer to a class would be prefixed pc.  But however you decide to proceed is up to you (or your company).  Just be consistent.</description>
		<content:encoded><![CDATA[<p>It&#8217;s really personal preference how you do your hungarian notation.  When it comes to pointers (or references), I use p (or r), then the letter denoting the type of the class, then the variable name.  Thus, a pointer to a class would be prefixed pc.  But however you decide to proceed is up to you (or your company).  Just be consistent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Buck</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-10585</link>
		<dc:creator>Chris Buck</dc:creator>
		<pubDate>Sun, 30 Mar 2008 08:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-10585</guid>
		<description>Could you pls elaborate on what's the difference between pcTeacher and pTeacher as far as hungarian notation is concerned?
Wasn't the 'c' used to clarify that it's an instance of a class and didn't we omit it when it's a pointer to a class?

Like shouldn't the 'c' be omitted in both cases and both pointers just be named pTeacher?</description>
		<content:encoded><![CDATA[<p>Could you pls elaborate on what&#8217;s the difference between pcTeacher and pTeacher as far as hungarian notation is concerned?<br />
Wasn&#8217;t the &#8216;c&#8217; used to clarify that it&#8217;s an instance of a class and didn&#8217;t we omit it when it&#8217;s a pointer to a class?</p>
<p>Like shouldn&#8217;t the &#8216;c&#8217; be omitted in both cases and both pointers just be named pTeacher?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 10.4 -- Container classes</title>
		<link>http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-6909</link>
		<dc:creator>Learn C++ - &#187; 10.4 -- Container classes</dc:creator>
		<pubDate>Thu, 31 Jan 2008 02:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/103-aggregation/#comment-6909</guid>
		<description>[...] Alex: Fixed. [...]</description>
		<content:encoded><![CDATA[<p>[...] Alex: Fixed. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
