• 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 12:38:24 +0200

Michael,

>>>>>> Michael B. Johnson (MBJ) wrote at Tue, 28 Aug 2001 22:40:56 -0700:
MBJ> People (and Apple) talk
MBJ> about "informal protocols", which means that they implement the methods
MBJ> but don't declare the protocol as one that they conform to. I've never
MBJ> understood why people do this, but Apple does this a lot...

'Tis easy -- since you generally want to implement only _some_ methods (even
none, sometimes) of the informal protocol.

Whilst a formal protocol defines methods the class _has to_ implement, an
informal one defines methods the class _may_ implement. That's the
difference.
---
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: "Michael B. Johnson" <email@hidden>
References: 
 >Re: Abstract classes and methods (From: "Michael B. Johnson" <email@hidden>)

  • Prev by Date: Re: QT/OpenGL
  • Next by Date: Re: Is K&R Still Relevant?
  • Previous by thread: Re: Abstract classes and methods
  • Next by thread: Re: Abstract classes and methods
  • Index(es):
    • Date
    • Thread