• 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: Chris Gehlker <email@hidden>
  • Date: Wed, 29 Aug 2001 06:44:02 -0700

On 8/29/01 2:39 AM, "Ondra Cada" <email@hidden> wrote:

> 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.

Can you? What if you derive from it? How does its parent constr/destr get
called when you construct/destruct a child class.
--
Laws are the spider's webs which, if anything small falls into them they
ensnare it, but large things break through and escape. -Solon, statesman
(c. 638-c558 BCE)


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

  • Prev by Date: Re: cocoa-dev digest, Vol 1 #490 - 7 msgs
  • Next by Date: Re: Abstract classes and methods
  • Previous by thread: Re: Abstract classes and methods
  • Next by thread: Re: Abstract classes and methods
  • Index(es):
    • Date
    • Thread