pure virtual methods?
pure virtual methods?
- Subject: pure virtual methods?
- From: Francisco Tolmasky <email@hidden>
- Date: Thu, 24 Jul 2003 11:28:54 -0700
Ok, in C++ if I made a method virtual =0, then subclasses would have to
define it. I want to do something similar in Objective C. I have a
class that inherits from NSObject but is to be used as a superclass.
It shouldn't be a protocol because it defines and does a lot of the
dirty work in the background, but all subclasses *should* define and
implement a number of methods. How can I ensure this happens without
making a separate protocol that people would have to make subclasses
adhere to?
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.