<?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: C++ had it right, Multiple Inheritance Rocks, Single Inheritance&#8230; not so much.</title>
	<atom:link href="http://josephbulger.com/technology/c-had-it-right-multiple-inheritance-rocks-single-inheritance-not-so-much/feed/" rel="self" type="application/rss+xml" />
	<link>http://josephbulger.com/technology/c-had-it-right-multiple-inheritance-rocks-single-inheritance-not-so-much/</link>
	<description>God, Family, Church, Engineering</description>
	<lastBuildDate>Wed, 09 Jun 2010 14:46:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: herzmeister_der_welten</title>
		<link>http://josephbulger.com/technology/c-had-it-right-multiple-inheritance-rocks-single-inheritance-not-so-much/comment-page-1/#comment-313</link>
		<dc:creator>herzmeister_der_welten</dc:creator>
		<pubDate>Tue, 13 Oct 2009 10:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://josephbulger.com/?p=60#comment-313</guid>
		<description>I heavily disagree that you would derive Coin from Currency. Obviously, that&#039;s a property. A coin is NOT a Currency, a Coin rather HAS a or IS OF a Currency. So a Coin x has a property Currency, and Currency class has all the complex economy code.

Deriving coin from a MetalObject makes slightly more sense, but that is depending on the context of what you want to achieve, as it always is. When your application system has only economy and no metallurgy code, then there&#039;s no need for any MetalObject base class.

Modern paradigms support Composition over Inheritance anyway. At last, you can resolve anything to a Has-A-Relationship, you would never need an Is-A-Relationship.

Unfortunately, the latter is not supported very well by todays programming languages without writing tons of tedious wrapper methods resulting probably in bad performance too.

I believe that concepts like MixIns and Traits are the future.</description>
		<content:encoded><![CDATA[<p>I heavily disagree that you would derive Coin from Currency. Obviously, that&#8217;s a property. A coin is NOT a Currency, a Coin rather HAS a or IS OF a Currency. So a Coin x has a property Currency, and Currency class has all the complex economy code.</p>
<p>Deriving coin from a MetalObject makes slightly more sense, but that is depending on the context of what you want to achieve, as it always is. When your application system has only economy and no metallurgy code, then there&#8217;s no need for any MetalObject base class.</p>
<p>Modern paradigms support Composition over Inheritance anyway. At last, you can resolve anything to a Has-A-Relationship, you would never need an Is-A-Relationship.</p>
<p>Unfortunately, the latter is not supported very well by todays programming languages without writing tons of tedious wrapper methods resulting probably in bad performance too.</p>
<p>I believe that concepts like MixIns and Traits are the future.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
