[Biococoa-dev] Subclass organization
Koen van der Drift
kvddrift at earthlink.net
Fri Feb 25 04:16:45 EST 2005
On Feb 24, 2005, at 10:30 PM, Charles PARNOT wrote:
> I think what John means is that in BCSymbol, -complement can return
> self:
> - (id)complement
> {
> return self;
> }
>
>
> and BCSymbolNucleotide would override this and have an ivar
> 'complement' to cache the result.
>
> It makes more sense, actually, because then it really takes advantage
> of the superclass-subclass design, where more specialized subclasses
> override superclass methods.
>
>
Ah, yes, that would indeed be the best approach.
- Koen.
More information about the Biococoa-dev
mailing list