<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: multiple class inheritance</title>
		<atom:link href="http://cycling74.com/forums/topic/multiple-class-inheritance/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/multiple-class-inheritance/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 20:26:09 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-38743</guid>
					<title><![CDATA[multiple class inheritance]]></title>
					<link>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-38743</link>
					<pubDate>Fri, 04 Jul 2008 19:57:28 +0000</pubDate>
					<dc:creator>Olivier Pasquet</dc:creator>

					<description>
						<![CDATA[
						<p>Hello there !</p>
<p>I&#8217;m trying to make :<br />
public class antsimulation extends MaxObject extends SimState {</p>
<p>In Java, I can only do :<br />
public class antsimulation extends MaxObject {</p>
<p>&#8220;extends SimState&#8221; is not allowed&#8230; I have tryed something like  <br />
&#8220;implements SimState&#8221; but it does not work.</p>
<p>O..///</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-135334</guid>
					<title><![CDATA[Re: multiple class inheritance]]></title>
					<link>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-135334</link>
					<pubDate>Fri, 04 Jul 2008 20:16:50 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>On 4 juil. 08, at 21:57, olivier pasquet wrote:</p>
<p>> Hello there !<br />
><br />
> I&#8217;m trying to make :<br />
> public class antsimulation extends MaxObject extends SimState {<br />
><br />
> In Java, I can only do :<br />
> public class antsimulation extends MaxObject {<br />
><br />
> &#8220;extends SimState&#8221; is not allowed&#8230; I have tryed something like  <br />
> &#8220;implements SimState&#8221; but it does not work.</p>
<p>
As far as I remember a class can only herite from one class. You  <br />
probably want to use an interface.</p>
<p>ej</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-135335</guid>
					<title><![CDATA[Re: multiple class inheritance]]></title>
					<link>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-135335</link>
					<pubDate>Fri, 04 Jul 2008 20:26:22 +0000</pubDate>
					<dc:creator>Olivier Pasquet</dc:creator>

					<description>
						<![CDATA[
						<p>> As far as I remember a class can only herite from one class. You  <br />
probably want to use an interface.<br />
< yes, indeed. cheers.</p>
</p><p>I&#8217;m trying to make :<br />
public class antsimulation extends MaxObject extends SimState {</p>
<p>In Java, I can only do :<br />
public class antsimulation extends MaxObject {</p>
<p>Instead, you should use :<br />
public class antsimulation extends MaxObject {<br />
public interface SimState{</p>
<p>That&#8217;s all.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-135336</guid>
					<title><![CDATA[Re: multiple class inheritance]]></title>
					<link>http://cycling74.com/forums/topic/multiple-class-inheritance/#post-135336</link>
					<pubDate>Fri, 04 Jul 2008 20:56:18 +0000</pubDate>
					<dc:creator>Adam Murray</dc:creator>

					<description>
						<![CDATA[
						<p>Yup, no multiple inheritance in Java. Interfaces are the standard alternative, but you could end up implementing the same interface the same way in multiple places. Redundant code is very bad&#8230;</p>
<p>So keep in mind inheritance is not the only way to share code between classes. By composing objects (just stick one object inside another as a member variable), you can get many of the same benefits of multiple inheritance. Google for &#8220;composition vs inheritance&#8221; if the idea isn&#8217;t clear.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

