<?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: 12.6 &#8212; Pure virtual functions, abstract base classes, and interface classes</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/</link>
	<description></description>
	<pubDate>Fri, 29 Aug 2008 19:11:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Ben</title>
		<link>http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-23072</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 07 Aug 2008 18:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-23072</guid>
		<description>Hi Alex,
in your IErrorLog class all functions are private. As i tried to compile your code, with the MySqrt() function, i discoverd, that the compiler complains about that, so i defined a class inheriting IErrorLong and changing the scope of the functions to public; still the compiler insists not to compile the code. So you might want to change the code. Besides that, can you imagine why a virtual class should ever have private member functions?
Ben</description>
		<content:encoded><![CDATA[<p>Hi Alex,<br />
in your IErrorLog class all functions are private. As i tried to compile your code, with the MySqrt() function, i discoverd, that the compiler complains about that, so i defined a class inheriting IErrorLong and changing the scope of the functions to public; still the compiler insists not to compile the code. So you might want to change the code. Besides that, can you imagine why a virtual class should ever have private member functions?<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-22328</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 30 Jul 2008 12:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-22328</guid>
		<description>Great tutorial for interface class,
Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Great tutorial for interface class,<br />
Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 12.5 &#8212; The virtual table</title>
		<link>http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-14431</link>
		<dc:creator>Learn C++ - &#187; 12.5 &#8212; The virtual table</dc:creator>
		<pubDate>Mon, 05 May 2008 02:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-14431</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 12.4 &#8212; Early binding and late binding &#124; Home &#124; 12.6 &#8212; Pure virtual functions, abstract base classes, and interface classes &#187;     Friday, February 8th, 2008 at 3:29 [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 12.4 &#8212; Early binding and late binding | Home | 12.6 &#8212; Pure virtual functions, abstract base classes, and interface classes &raquo;     Friday, February 8th, 2008 at 3:29 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-11803</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 15 Apr 2008 18:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-11803</guid>
		<description>As far as I know, =0 is just a syntactic convention for letting the compiler know that this is a pure virtual function.

You can think about it this way: normal functions have a body of code that needs to be executed when they are called.  This code has to live somewhere in memory, so the function's name is essentially a pointer to that code.

On the other hand, pure virtual functions have no body, and thus, do not have need for an address at all.  0 is the NULL address.</description>
		<content:encoded><![CDATA[<p>As far as I know, =0 is just a syntactic convention for letting the compiler know that this is a pure virtual function.</p>
<p>You can think about it this way: normal functions have a body of code that needs to be executed when they are called.  This code has to live somewhere in memory, so the function&#8217;s name is essentially a pointer to that code.</p>
<p>On the other hand, pure virtual functions have no body, and thus, do not have need for an address at all.  0 is the NULL address.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Susan</title>
		<link>http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-11691</link>
		<dc:creator>Susan</dc:creator>
		<pubDate>Mon, 14 Apr 2008 08:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/#comment-11691</guid>
		<description>Can you please answer why a pure virtual function should be equated to 0 and not to any other number.
</description>
		<content:encoded><![CDATA[<p>Can you please answer why a pure virtual function should be equated to 0 and not to any other number.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
