[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: multiple inheritance
From: |
Sven Thommesen |
Subject: |
Re: Re: multiple inheritance |
Date: |
Wed, 13 Nov 1996 11:42:19 -0600 |
more:
using Categories or Protocols may be another solution, but neither allows
you to define instance variables, only methods and their implementations.
(According to the Next book.)
Using message forwarding within a composite object also captures the data
structures of the component objects. So that may be the way to go if you
want to duplicate the effects of multiple inheritance. (And never mind that
we're using "has-a" to simulate "is-a" ... ;-)
Actually, the composite object way of doing things would seem to be an
excellent way to model schizophrenic people, or a "society of mind" model of
agents ...
Cheers,
Sven