Re: abstract class
Re: abstract class
- Subject: Re: abstract class
- From: Shawn Erickson <email@hidden>
- Date: Thu, 24 May 2007 22:35:23 -0700
On May 24, 2007, at 10:04 PM, Daniel Child wrote:
Shawn,
If you provide no implementation code for someAbstractMethod under
AbstractClass, then when the user calls
AbstractClass * myNewObject = [[AbstractClass alloc] init];
[myNewObject someAbstractMethod];
how is it going to get booted down to the subclass's implementation
of someAbstractMethod (the one which does the work)?
You wouldn't allocate AbstractClass you would allocate one of its
subclasses. My example isn't a class cluster just and example of a
basic abstract class.
-Shawn
_______________________________________________
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