• 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:47 +0200

Chris,

>>>>>> Chris Gehlker (CG) wrote at Tue, 28 Aug 2001 21:47:15 -0700:
CG> But in ObjC every class is a descendent of NSObject:

that's not true. See eg. NSProxy.

CG> you never define the top of the tree.

that's true, unless you do really strange things.

CG> Even a class that functions as a
CG> pure virtual class is going to have to define init as [super init] and
CG> dealloc as [super dealloc]

That's not true: *if* you implement a virutal class, there is no need to
bother with init/dealloc of it. Actually, you can forget that also for
classes which are *not* abstract at all, but just happen to have no
"constructable/destructable" properties.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: Abstract classes and methods
      • From: Chris Gehlker <email@hidden>
References: 
 >Re: Abstract classes and methods (From: Chris Gehlker <email@hidden>)

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