Re: only defined for abstract class
Re: only defined for abstract class
- Subject: Re: only defined for abstract class
- From: glenn andreas <email@hidden>
- Date: Thu, 6 Oct 2005 11:01:17 -0500
On Oct 6, 2005, at 10:47 AM, Francis Derive wrote:
On Oct 6, 2005, at 3:29 PM, Nick Zitzmann wrote:
I'm not an expert at class clustering, but I don't think you can
invoke the superclass of a class cluster subclass in one of its
primitive methods,
That seems definitely to be true.
because the superclass method doesn't actually do anything except
raise exceptions.
But in the general case, I would believe a superclass (primitive)
method would do something valuable ?
That's the point of the class cluster architecture - these primitive
methods are effectively "pure" abstract methods (and that the
superclass only defines the API, and not the internal implementation
details). If you're familiar with C++, you can think of it like:
class DictionaryClass {
virtual id objectForKey(id key) = NULL;
}
If you were to subclass DictionaryClass, you won't call the base
classes objectForKey in your derived class's objectForKey.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden