• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Abstract classes and methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Abstract classes and methods (From: stuartbryson <email@hidden>)

  • Prev by Date: Re: Bad error?
  • Next by Date: Re: Required in .h
  • Previous by thread: Re: Abstract classes and methods
  • Next by thread: Re: Abstract classes and methods
  • Index(es):
    • Date
    • Thread