Re: Abstract classes and methods
Re: Abstract classes and methods
- Subject: Re: Abstract classes and methods
- From: Ondra Cada <email@hidden>
- Date: Wed, 29 Aug 2001 11:39:56 +0200
stuartbryson,
>
>>>>> stuartbryson (s) wrote at Thu, 30 Aug 2001 13:54:31 +1000:
s> In C++ it is possible to force both classes and methods to be abstract.
s> That is classes that cannot be instantiated without being subclassed and
s> particular methods overrided. How do I force abstract classes and
s> methods in Obj-C.
Since ObjC is dynamic, it is more or less impossible there. You can do that,
of course, runtime (see doesNotRecognizeSelector: in NSObject.html).
As for abstract classes, just forget them -- use class clusters instead.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc