Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!nntp.sei.cmu.edu!news.cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!cs.utexas.edu!swrinde!newsfeed.internetmci.com!news.sprintlink.net!news-stk-200.sprintlink.net!news2.noc.netcom.net!noc.netcom.net!netcom.com!rfenney.slip.netcom.com!user
From: rfenney@netcom.com (Robert J. Fenney)
Subject: Re: Multiple Inheritance
Message-ID: <rfenney-2706960906150001@rfenney.slip.netcom.com>
Sender: netnews@mork.netcom.com
Nntp-Posting-Host: rfenney.slip.netcom.com
Organization: FenTek
References: <4qstk0$1mm@blackice.winternet.com>
Date: Thu, 27 Jun 1996 16:06:15 GMT
Lines: 15

In article <4qstk0$1mm@blackice.winternet.com>, bhabeck@dwave.net (Bryan
Habeck) wrote:

> We have encountered a situation where we would like to simulate the
effects of 
> multiple inheritance:  We have a class Person and a class Producer, both 
> subclasses of Entity.  We also have a class PersonProducer, which happens to 
> be the case when a person is also a producer. This class has all the 
> attributes and responsibilities of both Person and Producer.  Is there an 
> simple, elegant way to implement these classes?


Look into enapsulating one or the other and deligate the responibility.

Robert
