Re: Question
Re: Question
- Subject: Re: Question
- From: Nathan Day <email@hidden>
- Date: Wed, 5 Dec 2001 14:26:04 +1030
On Tuesday, December 4, 2001, at 08:56 PM, email@hidden wrote:
Now, back to the point. Sure, I could fix the problem by coding a
composite object (can't use protocols because protocols cannot inherit
from classes, right?) with an union of both superclasses' interfaces,
forwarding calls to a couple of objects that represent each state of
the multiple superclass object, right?. However, this way I would not
gain type equivalence, having to use "id" as parameter type whenever I
need to receive an object like this one.
You can create a informal protocol for the methods you want to forward,
I do this sometimes myself.