<?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: How inheritance, encapsulation and polymorphism work in C++</title>
	<atom:link href="http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp</link>
	<description></description>
	<lastBuildDate>Fri, 19 Mar 2010 17:30:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Alexander Sandler</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-23470</link>
		<dc:creator>Alexander Sandler</dc:creator>
		<pubDate>Mon, 31 Aug 2009 07:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-23470</guid>
		<description>&lt;a href=&#039;#comment-23465&#039; rel=&quot;nofollow&quot;&gt;@San&lt;/a&gt;
This is exactly what I&#039;ve written.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23470&#039;,&#039;Alexander Sandler&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23470&#039;,&#039;Alexander Sandler&#039;,&#039;&lt;a href=\&#039;#comment-23465\&#039; rel=\&quot;nofollow\&quot;&gt;@San&lt;\/a&gt;\r\nThis is exactly what I\&#039;ve written.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-23465' rel="nofollow">@San</a><br />
This is exactly what I&#8217;ve written.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23470','Alexander Sandler'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23470','Alexander Sandler','&lt;a href=\'#comment-23465\' rel=\&quot;nofollow\&quot;&gt;@San&lt;\/a&gt;\r\nThis is exactly what I\'ve written.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: San</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-23465</link>
		<dc:creator>San</dc:creator>
		<pubDate>Fri, 28 Aug 2009 11:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-23465</guid>
		<description>I don&#039;t think it&#039;s the constructor that fill the virtual method table. In fact, an object just embeds a pointer to a virtual method table. All virtual method tables are built and filled by the compiler. The construct just direct the pointer embedded in the object to a proper method table.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23465&#039;,&#039;San&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23465&#039;,&#039;San&#039;,&#039;I don\&#039;t think it\&#039;s the constructor that fill the virtual method table. In fact, an object just embeds a pointer to a virtual method table. All virtual method tables are built and filled by the compiler. The construct just direct the pointer embedded in the object to a proper method table.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think it&#8217;s the constructor that fill the virtual method table. In fact, an object just embeds a pointer to a virtual method table. All virtual method tables are built and filled by the compiler. The construct just direct the pointer embedded in the object to a proper method table.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23465','San'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23465','San','I don\'t think it\'s the constructor that fill the virtual method table. In fact, an object just embeds a pointer to a virtual method table. All virtual method tables are built and filled by the compiler. The construct just direct the pointer embedded in the object to a proper method table.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Goddard Rosa</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-23380</link>
		<dc:creator>Andre Goddard Rosa</dc:creator>
		<pubDate>Mon, 27 Jul 2009 01:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-23380</guid>
		<description>&lt;a href=&#039;#comment-23363&#039; rel=&quot;nofollow&quot;&gt;@Alexander Sandler&lt;/a&gt; - Thank you! :)&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23380&#039;,&#039;Andre Goddard Rosa&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23380&#039;,&#039;Andre Goddard Rosa&#039;,&#039;&lt;a href=\&#039;#comment-23363\&#039; rel=\&quot;nofollow\&quot;&gt;@Alexander Sandler&lt;\/a&gt; - Thank you! :)&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-23363' rel="nofollow">@Alexander Sandler</a> &#8211; Thank you! <img src='http://www.alexonlinux.com/wp-content/plugins/smilies-themer/modern/smile.gif' alt=':)' class='wp-smiley' />
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23380','Andre Goddard Rosa'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23380','Andre Goddard Rosa','&lt;a href=\'#comment-23363\' rel=\&quot;nofollow\&quot;&gt;@Alexander Sandler&lt;\/a&gt; - Thank you! :)'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Sandler</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-23363</link>
		<dc:creator>Alexander Sandler</dc:creator>
		<pubDate>Sun, 26 Jul 2009 08:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-23363</guid>
		<description>&lt;a href=&#039;#comment-23345&#039; rel=&quot;nofollow&quot;&gt;Originally Posted By Andre Goddard Rosa&lt;/a&gt;&lt;blockquote&gt;&lt;br/&gt;Hi, Alexander!

First of all, your website is really _really_ great!
After I found it, it became irresistible to read it all completely.
Please keep up the nice work! You talk about so many interesting subjects, it&#039;s so nice to have all this information on one place.&lt;/blockquote&gt; Thanks! :-)

&lt;blockquote&gt;I have two things to say, besides praising your website:

1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;&lt;/blockquote&gt;

It&#039;s all kinds of places. This one in particular is a result of a research I did. This topic got me interested and I investigated it. Most of the time it comes from things that I for the company I work for.

&lt;blockquote&gt;2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C&#039;s second vtable;&lt;/blockquote&gt;
I guess it&#039;s kind of less relevant here so I dropped it. 

&lt;blockquote&gt;And another question... Which program did you use for making those nice diagrams?&lt;/blockquote&gt;
I am sorry to say this but this is MS. Word 2007. 2007 version in particular has a couple of features that allow you to draw diagrams like this. Although, I think OpenOffice 3.1 now has them too.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23363&#039;,&#039;Alexander Sandler&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23363&#039;,&#039;Alexander Sandler&#039;,&#039;&lt;a href=\&#039;#comment-23345\&#039; rel=\&quot;nofollow\&quot;&gt;Originally Posted By Andre Goddard Rosa&lt;\/a&gt;&lt;blockquote&gt;&lt;br\/&gt;Hi, Alexander!\r\n\r\nFirst of all, your website is really _really_ great!\r\nAfter I found it, it became irresistible to read it all completely.\r\nPlease keep up the nice work! You talk about so many interesting subjects, it\&#039;s so nice to have all this information on one place.&lt;\/blockquote&gt; Thanks! :-)\r\n\r\n&lt;blockquote&gt;I have two things to say, besides praising your website:\r\n\r\n1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;&lt;\/blockquote&gt;\r\n\r\nIt\&#039;s all kinds of places. This one in particular is a result of a research I did. This topic got me interested and I investigated it. Most of the time it comes from things that I for the company I work for.\r\n\r\n&lt;blockquote&gt;2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C\&#039;s second vtable;&lt;\/blockquote&gt;\r\nI guess it\&#039;s kind of less relevant here so I dropped it. \r\n\r\n&lt;blockquote&gt;And another question... Which program did you use for making those nice diagrams?&lt;\/blockquote&gt;\r\nI am sorry to say this but this is MS. Word 2007. 2007 version in particular has a couple of features that allow you to draw diagrams like this. Although, I think OpenOffice 3.1 now has them too.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-23345' rel="nofollow">Originally Posted By Andre Goddard Rosa</a><br />
<blockquote>Hi, Alexander!</p>
<p>First of all, your website is really _really_ great!<br />
After I found it, it became irresistible to read it all completely.<br />
Please keep up the nice work! You talk about so many interesting subjects, it&#8217;s so nice to have all this information on one place.</p></blockquote>
<p> Thanks! <img src='http://www.alexonlinux.com/wp-content/plugins/smilies-themer/modern/smile.gif' alt=':-)' class='wp-smiley' /> </p>
<blockquote><p>I have two things to say, besides praising your website:</p>
<p>1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;</p></blockquote>
<p>It&#8217;s all kinds of places. This one in particular is a result of a research I did. This topic got me interested and I investigated it. Most of the time it comes from things that I for the company I work for.</p>
<blockquote><p>2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C&#8217;s second vtable;</p></blockquote>
<p>I guess it&#8217;s kind of less relevant here so I dropped it. </p>
<blockquote><p>And another question&#8230; Which program did you use for making those nice diagrams?</p></blockquote>
<p>I am sorry to say this but this is MS. Word 2007. 2007 version in particular has a couple of features that allow you to draw diagrams like this. Although, I think OpenOffice 3.1 now has them too.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23363','Alexander Sandler'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23363','Alexander Sandler','&lt;a href=\'#comment-23345\' rel=\&quot;nofollow\&quot;&gt;Originally Posted By Andre Goddard Rosa&lt;\/a&gt;&lt;blockquote&gt;&lt;br\/&gt;Hi, Alexander!\r\n\r\nFirst of all, your website is really _really_ great!\r\nAfter I found it, it became irresistible to read it all completely.\r\nPlease keep up the nice work! You talk about so many interesting subjects, it\'s so nice to have all this information on one place.&lt;\/blockquote&gt; Thanks! :-)\r\n\r\n&lt;blockquote&gt;I have two things to say, besides praising your website:\r\n\r\n1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;&lt;\/blockquote&gt;\r\n\r\nIt\'s all kinds of places. This one in particular is a result of a research I did. This topic got me interested and I investigated it. Most of the time it comes from things that I for the company I work for.\r\n\r\n&lt;blockquote&gt;2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C\'s second vtable;&lt;\/blockquote&gt;\r\nI guess it\'s kind of less relevant here so I dropped it. \r\n\r\n&lt;blockquote&gt;And another question... Which program did you use for making those nice diagrams?&lt;\/blockquote&gt;\r\nI am sorry to say this but this is MS. Word 2007. 2007 version in particular has a couple of features that allow you to draw diagrams like this. Although, I think OpenOffice 3.1 now has them too.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Goddard Rosa</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-23347</link>
		<dc:creator>Andre Goddard Rosa</dc:creator>
		<pubDate>Sat, 25 Jul 2009 04:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-23347</guid>
		<description>Sorry for the interspersed comment, I should say the c_member is missing from more than one picture.

And I&#039;d like to take the opportunity to say that I&#039;ve subscribed to your website and suggest that after you come up with even more content, you could organize and make a book with all this information. Is this your plan already?&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23347&#039;,&#039;Andre Goddard Rosa&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23347&#039;,&#039;Andre Goddard Rosa&#039;,&#039;Sorry for the interspersed comment, I should say the c_member is missing from more than one picture.\r\n\r\nAnd I\&#039;d like to take the opportunity to say that I\&#039;ve subscribed to your website and suggest that after you come up with even more content, you could organize and make a book with all this information. Is this your plan already?&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Sorry for the interspersed comment, I should say the c_member is missing from more than one picture.</p>
<p>And I&#8217;d like to take the opportunity to say that I&#8217;ve subscribed to your website and suggest that after you come up with even more content, you could organize and make a book with all this information. Is this your plan already?
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23347','Andre Goddard Rosa'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23347','Andre Goddard Rosa','Sorry for the interspersed comment, I should say the c_member is missing from more than one picture.\r\n\r\nAnd I\'d like to take the opportunity to say that I\'ve subscribed to your website and suggest that after you come up with even more content, you could organize and make a book with all this information. Is this your plan already?'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Goddard Rosa</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-23346</link>
		<dc:creator>Andre Goddard Rosa</dc:creator>
		<pubDate>Sat, 25 Jul 2009 03:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-23346</guid>
		<description>Ahhhn, c_member is also missing from that very same picture.&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23346&#039;,&#039;Andre Goddard Rosa&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23346&#039;,&#039;Andre Goddard Rosa&#039;,&#039;Ahhhn, c_member is also missing from that very same picture.&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Ahhhn, c_member is also missing from that very same picture.
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23346','Andre Goddard Rosa'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23346','Andre Goddard Rosa','Ahhhn, c_member is also missing from that very same picture.'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Goddard Rosa</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-23345</link>
		<dc:creator>Andre Goddard Rosa</dc:creator>
		<pubDate>Sat, 25 Jul 2009 03:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-23345</guid>
		<description>Hi, Alexander!

First of all, your website is really _really_ great!
After I found it, it became irresistible to read it all completely.
Please keep up the nice work! You talk about so many interesting subjects, it&#039;s so nice to have all this information on one place.

I have two things to say, besides praising your website:

1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;

2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C&#039;s second vtable;

And another question... Which program did you use for making those nice diagrams?&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;23345&#039;,&#039;Andre Goddard Rosa&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;23345&#039;,&#039;Andre Goddard Rosa&#039;,&#039;Hi, Alexander!\r\n\r\nFirst of all, your website is really _really_ great!\r\nAfter I found it, it became irresistible to read it all completely.\r\nPlease keep up the nice work! You talk about so many interesting subjects, it\&#039;s so nice to have all this information on one place.\r\n\r\nI have two things to say, besides praising your website:\r\n\r\n1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;\r\n\r\n2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C\&#039;s second vtable;\r\n\r\nAnd another question... Which program did you use for making those nice diagrams?&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Hi, Alexander!</p>
<p>First of all, your website is really _really_ great!<br />
After I found it, it became irresistible to read it all completely.<br />
Please keep up the nice work! You talk about so many interesting subjects, it&#8217;s so nice to have all this information on one place.</p>
<p>I have two things to say, besides praising your website:</p>
<p>1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;</p>
<p>2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C&#8217;s second vtable;</p>
<p>And another question&#8230; Which program did you use for making those nice diagrams?
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('23345','Andre Goddard Rosa'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('23345','Andre Goddard Rosa','Hi, Alexander!\r\n\r\nFirst of all, your website is really _really_ great!\r\nAfter I found it, it became irresistible to read it all completely.\r\nPlease keep up the nice work! You talk about so many interesting subjects, it\'s so nice to have all this information on one place.\r\n\r\nI have two things to say, besides praising your website:\r\n\r\n1) I wonder where you get all information. Is it by reading source code or you have some books to recommend? Perhaps it would be welcome a small topic with some nice references;\r\n\r\n2) On picture inheritance3.png, the one which depicts A, B and C internal class representation, I think you missed C::set_c() method on C\'s second vtable;\r\n\r\nAnd another question... Which program did you use for making those nice diagrams?'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Destillat KW27 &#124; duetsch.info</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-22872</link>
		<dc:creator>Destillat KW27 &#124; duetsch.info</dc:creator>
		<pubDate>Fri, 03 Jul 2009 12:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-22872</guid>
		<description>[...] How inheritance, encapsulation and polymorphism work in C++ [...]&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;22872&#039;,&#039;Destillat KW27 &#124; duetsch.info&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;22872&#039;,&#039;Destillat KW27 &#124; duetsch.info&#039;,&#039;&#91;...&#93; How inheritance, encapsulation and polymorphism work in C++ &#91;...&#93;&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>[...] How inheritance, encapsulation and polymorphism work in C++ [...]
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('22872','Destillat KW27 | duetsch.info'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('22872','Destillat KW27 | duetsch.info','&amp;#91;...&amp;#93; How inheritance, encapsulation and polymorphism work in C++ &amp;#91;...&amp;#93;'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Sandler</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-22535</link>
		<dc:creator>Alexander Sandler</dc:creator>
		<pubDate>Sun, 24 May 2009 07:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-22535</guid>
		<description>&lt;a href=&#039;#comment-22534&#039; rel=&quot;nofollow&quot;&gt;@Amirhossein Jabbari&lt;/a&gt;
It depends. If you are accessing virtual method, then pointers should point to two difference instances - check out polymorphism and multiple inheritance section of the article to see how it works.

If methods you are trying to access are regular methods, then it will call a method depending on type of object whose method you are calling. 
For instance, in the same example you&#039;ve referenced, lets say we add a non-virtual method to class A and overload it in class C. Then we call it via object c and via a1. First time it will call C&#039;s method. Second time it will call A&#039;s method.

Hope it answers your question. Thanks for visiting and please come again :-)&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;22535&#039;,&#039;Alexander Sandler&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;22535&#039;,&#039;Alexander Sandler&#039;,&#039;&lt;a href=\&#039;#comment-22534\&#039; rel=\&quot;nofollow\&quot;&gt;@Amirhossein Jabbari&lt;\/a&gt;\r\nIt depends. If you are accessing virtual method, then pointers should point to two difference instances - check out polymorphism and multiple inheritance section of the article to see how it works.\r\n\r\nIf methods you are trying to access are regular methods, then it will call a method depending on type of object whose method you are calling. \r\nFor instance, in the same example you\&#039;ve referenced, lets say we add a non-virtual method to class A and overload it in class C. Then we call it via object c and via a1. First time it will call C\&#039;s method. Second time it will call A\&#039;s method.\r\n\r\nHope it answers your question. Thanks for visiting and please come again :-)&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-22534' rel="nofollow">@Amirhossein Jabbari</a><br />
It depends. If you are accessing virtual method, then pointers should point to two difference instances &#8211; check out polymorphism and multiple inheritance section of the article to see how it works.</p>
<p>If methods you are trying to access are regular methods, then it will call a method depending on type of object whose method you are calling.<br />
For instance, in the same example you&#8217;ve referenced, lets say we add a non-virtual method to class A and overload it in class C. Then we call it via object c and via a1. First time it will call C&#8217;s method. Second time it will call A&#8217;s method.</p>
<p>Hope it answers your question. Thanks for visiting and please come again <img src='http://www.alexonlinux.com/wp-content/plugins/smilies-themer/modern/smile.gif' alt=':-)' class='wp-smiley' />
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('22535','Alexander Sandler'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('22535','Alexander Sandler','&lt;a href=\'#comment-22534\' rel=\&quot;nofollow\&quot;&gt;@Amirhossein Jabbari&lt;\/a&gt;\r\nIt depends. If you are accessing virtual method, then pointers should point to two difference instances - check out polymorphism and multiple inheritance section of the article to see how it works.\r\n\r\nIf methods you are trying to access are regular methods, then it will call a method depending on type of object whose method you are calling. \r\nFor instance, in the same example you\'ve referenced, lets say we add a non-virtual method to class A and overload it in class C. Then we call it via object c and via a1. First time it will call C\'s method. Second time it will call A\'s method.\r\n\r\nHope it answers your question. Thanks for visiting and please come again :-)'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amirhossein Jabbari</title>
		<link>http://www.alexonlinux.com/how-inheritance-encapsulation-and-polymorphism-work-in-cpp/comment-page-1#comment-22534</link>
		<dc:creator>Amirhossein Jabbari</dc:creator>
		<pubDate>Sat, 23 May 2009 18:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexandersandler.net/?page_id=474#comment-22534</guid>
		<description>After a few months I&#039;m back to your wonderful article again and It seems it still have something new for me to learn.
When using different types of casting in Multiple Inheritance example, I understand the difference between b1 and b2 in the sense that they point to different locations of the instance of C class. However, the question is what is the difference between these two pointers when one wants to access the member functions of the class C?&lt;div class=&quot;comment-remix-meta&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;replyto&quot; onclick=&quot;replyto(&#039;22534&#039;,&#039;Amirhossein Jabbari&#039;); return false;&quot;&gt;Reply&lt;/a&gt;  - &lt;a href=&quot;#&quot; class=&quot;quote&quot; onclick=&quot;quote(&#039;22534&#039;,&#039;Amirhossein Jabbari&#039;,&#039;After a few months I\&#039;m back to your wonderful article again and It seems it still have something new for me to learn.\r\nWhen using different types of casting in Multiple Inheritance example, I understand the difference between b1 and b2 in the sense that they point to different locations of the instance of C class. However, the question is what is the difference between these two pointers when one wants to access the member functions of the class C?&#039;); return false;&quot;&gt;Quote&lt;/a&gt;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>After a few months I&#8217;m back to your wonderful article again and It seems it still have something new for me to learn.<br />
When using different types of casting in Multiple Inheritance example, I understand the difference between b1 and b2 in the sense that they point to different locations of the instance of C class. However, the question is what is the difference between these two pointers when one wants to access the member functions of the class C?
<div class="comment-remix-meta"><a href="#" class="replyto" onclick="replyto('22534','Amirhossein Jabbari'); return false;">Reply</a>  &#8211; <a href="#" class="quote" onclick="quote('22534','Amirhossein Jabbari','After a few months I\'m back to your wonderful article again and It seems it still have something new for me to learn.\r\nWhen using different types of casting in Multiple Inheritance example, I understand the difference between b1 and b2 in the sense that they point to different locations of the instance of C class. However, the question is what is the difference between these two pointers when one wants to access the member functions of the class C?'); return false;">Quote</a></div>
]]></content:encoded>
	</item>
</channel>
</rss>
