Re: abstract class
Re: abstract class
- Subject: Re: abstract class
- From: Serge Cohen <email@hidden>
- Date: Fri, 25 May 2007 00:35:44 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi List;
To come back to the original post... I was also wondering how the
'class-cluster' were implemented...
Clearly this does not require that the top class is abstract. Still I
have troubles to understand how the allocation/init works for these
cluster classes.
Can anyone provide an example ?
Thanks in advance.
Serge.
PS : To be even more precise, I'm one of those that "DoNotKnowOrCare"
concerning abstract class; though I do care a lot of class cluster as
a interesting concept.
Le 24 mai 07 à 18:12, Bill Bumgarner a écrit :
On May 24, 2007, at 8:44 AM, Daniel Child wrote:
I have just started studying this stuff and must be missing
something obvious, but even the gnu documentation mentions
abstract classes without giving an example. Could anyone show the
briefest example of how it works in Obj-C? Thanks in advance.
What Shawn said...
And, given:
@interface
PublicThatHappensToBeAbstraactButYourClientsDoNotKnowOrCare : NSObject
... API for your Abstract public interface here ...
+ (PublicThatHappensToBeAbstraactButYourClientsDoNotKnowOrCare *)
publicWithFoo: (Foo *) aFoo; // create a new Public from a Foo
@end
// private begins
@interface
SomeVeryConcreteSubclassThatIsTotallyOptimizedToDealWithFoos :
PublicThatHappensToBeAbstraactButYourClientsDoNotKnowOrCare
... declare whatever you need for this specific implementation ...
- initWithFoo: (Foo *) aFoo;
@end
............
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFGVhNF5EPeG5y7WPsRAg2NAJ9fv0B54hoCjZBReHvv9hdqjqecVQCgxf2q
4jGW0x90Rz2hkTcw3zTV0jg=
=Jc1S
-----END PGP SIGNATURE-----
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden