<?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: Multiple Inheritance in Java</title>
	<atom:link href="http://erikras.com/2006/10/23/multiple-inheritance-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/</link>
	<description>Thoughts and photos from an American living in Spain.</description>
	<lastBuildDate>Thu, 17 May 2012 04:46:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Erik R.</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-349</link>
		<dc:creator>Erik R.</dc:creator>
		<pubDate>Tue, 24 Aug 2010 14:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-349</guid>
		<description>Yes, I know. The language doesn&#039;t allow &quot;true MI&quot;. However, I&#039;ve still never seen a more elegant solution to mimicking MI in java.</description>
		<content:encoded><![CDATA[<p>Yes, I know. The language doesn&#8217;t allow &#8220;true MI&#8221;. However, I&#8217;ve still never seen a more elegant solution to mimicking MI in java.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Earwicker</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-348</link>
		<dc:creator>Daniel Earwicker</dc:creator>
		<pubDate>Tue, 24 Aug 2010 13:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-348</guid>
		<description>What you&#039;ve discovered here is not multiple inheritance. It&#039;s multiple calls to some common subroutines in order to avoid code duplication, i.e. ordinary 1970s structured programming.

With true MI, there could be an abstract method SelfParenting.getDatabase(). The deriving class would override this to return the database, and the inherited class(es) would be able to call getDatabase() to obtain the database, instead of requiring a parameter to be passed around.</description>
		<content:encoded><![CDATA[<p>What you&#8217;ve discovered here is not multiple inheritance. It&#8217;s multiple calls to some common subroutines in order to avoid code duplication, i.e. ordinary 1970s structured programming.</p>
<p>With true MI, there could be an abstract method SelfParenting.getDatabase(). The deriving class would override this to return the database, and the inherited class(es) would be able to call getDatabase() to obtain the database, instead of requiring a parameter to be passed around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik R.</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-347</link>
		<dc:creator>Erik R.</dc:creator>
		<pubDate>Tue, 04 May 2010 17:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-347</guid>
		<description>Okay. What does that accomplish?</description>
		<content:encoded><![CDATA[<p>Okay. What does that accomplish?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JavaSon</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-346</link>
		<dc:creator>JavaSon</dc:creator>
		<pubDate>Tue, 04 May 2010 17:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-346</guid>
		<description>How about inheriting from a superclass and having an inner class also inherit from a different superclass.</description>
		<content:encoded><![CDATA[<p>How about inheriting from a superclass and having an inner class also inherit from a different superclass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-345</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 28 Oct 2009 19:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-345</guid>
		<description>I can think of a half a dozen occasions I&#039;ve wished for MI in the past few months.  Many of the interface hacks I&#039;ve had to use instead left a bad taste in my mouth.  It&#039;s a shame that I know what I WANT to do and are not allowed to.

I like this solution.  The only complaint I have about it is that it doesn&#039;t allow you to inject a different implementation for the interface implementation class.</description>
		<content:encoded><![CDATA[<p>I can think of a half a dozen occasions I&#8217;ve wished for MI in the past few months.  Many of the interface hacks I&#8217;ve had to use instead left a bad taste in my mouth.  It&#8217;s a shame that I know what I WANT to do and are not allowed to.</p>
<p>I like this solution.  The only complaint I have about it is that it doesn&#8217;t allow you to inject a different implementation for the interface implementation class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: online keno games</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-344</link>
		<dc:creator>online keno games</dc:creator>
		<pubDate>Thu, 19 Mar 2009 07:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-344</guid>
		<description>The lack of multiple inheritence is a blessing not a curse,and it should be embraced.In a decade of using java &lt;a href=&quot;http://www.onlinekenogames.net&quot; rel=&quot;nofollow&quot;&gt;online keno games&lt;/a&gt;I have only one time encountered need for multiple inheritance, and a tiny bit of typing allowed me to use interfaces to eliminate the problem.People should pull out things like the reflection API as a last resort, and should be prepared to resign the next day.</description>
		<content:encoded><![CDATA[<p>The lack of multiple inheritence is a blessing not a curse,and it should be embraced.In a decade of using java <a href="http://www.onlinekenogames.net" rel="nofollow">online keno games</a>I have only one time encountered need for multiple inheritance, and a tiny bit of typing allowed me to use interfaces to eliminate the problem.People should pull out things like the reflection API as a last resort, and should be prepared to resign the next day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erik</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-343</link>
		<dc:creator>erik</dc:creator>
		<pubDate>Mon, 21 May 2007 20:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-343</guid>
		<description>An &quot;Add-In&quot; for an IDE?  Which IDE?

Anyway, I look forward to seeing what you come up with.</description>
		<content:encoded><![CDATA[<p>An &#8220;Add-In&#8221; for an IDE?  Which IDE?</p>
<p>Anyway, I look forward to seeing what you come up with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johanatan</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-342</link>
		<dc:creator>johanatan</dc:creator>
		<pubDate>Mon, 21 May 2007 19:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-342</guid>
		<description>P.S.  I wouldn&#039;t call this a &#039;flaw&#039; either.  It&#039;s more of a deficiency.  But, I&#039;m currently working on the Add-In that I hoped would fill in the gap.  I&#039;ll post a link to it when it&#039;s done.</description>
		<content:encoded><![CDATA[<p>P.S.  I wouldn&#8217;t call this a &#8216;flaw&#8217; either.  It&#8217;s more of a deficiency.  But, I&#8217;m currently working on the Add-In that I hoped would fill in the gap.  I&#8217;ll post a link to it when it&#8217;s done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johanatan</title>
		<link>http://erikras.com/2006/10/23/multiple-inheritance-in-java/#comment-341</link>
		<dc:creator>johanatan</dc:creator>
		<pubDate>Thu, 19 Apr 2007 19:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/#comment-341</guid>
		<description>I&#039;m not a dogmatic C++ programmer, but I do enjoy having the option to use multiple inheritance.  It saves you from having to &#039;wrap&#039; all your method calls to the inner static.  And, also you aren&#039;t limited to using a static (i.e., your example could have had and used members in the interface).  Of course, multiple inheritance can be abused, but &#039;with great power comes great responsibility&#039;.

It would be really nice if there was a wrapper generator (i.e. macro) in the IDE for this sort of multiple inheritance workaround (or for the containment approach).</description>
		<content:encoded><![CDATA[<p>I&#8217;m not a dogmatic C++ programmer, but I do enjoy having the option to use multiple inheritance.  It saves you from having to &#8216;wrap&#8217; all your method calls to the inner static.  And, also you aren&#8217;t limited to using a static (i.e., your example could have had and used members in the interface).  Of course, multiple inheritance can be abused, but &#8216;with great power comes great responsibility&#8217;.</p>
<p>It would be really nice if there was a wrapper generator (i.e. macro) in the IDE for this sort of multiple inheritance workaround (or for the containment approach).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

