[Zope3-Users] Interface confusion (still)

Fred Drake fdrake at gmail.com
Tue Jul 15 19:27:55 EDT 2008


On Tue, Jul 15, 2008 at 6:56 PM, Benji York <benji at zope.com> wrote:
> When one says that a class *provides* an interface they're saying that
> instances of that class *implements* the interface.

Sorry, you got that backwards.  Instances provide the interfaces their
class implements.

> On the other hand, lets say you had an IFooFactory interface that only
> required that objects *providing* it be callable.  In that case a class
> Foo itself can *provide* the interface (because the class is callable).

This is right.


 -Fred

-- 
Fred L. Drake, Jr. <fdrake at gmail.com>
"Chaos is the score upon which reality is written." --Henry Miller


More information about the Zope3-users mailing list