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