[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Acquisition

webmaster at zope.org webmaster at zope.org
Fri Jan 30 23:26:31 EST 2004


A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/Acquisition.stx#2-3

---------------

    The *inheritance hierarchy* is defined by the class' superclass
    definitions.  In the case of the Sub class above, it has a simple
    inheritance hierarchy: it inherits first from the SuperA
    superclass, then it inherits from the SuperB superclass.  This
    means that if you call a method on an instance of the Sub class,
    and that method is not defined as part of the Sub class'
    definition, it will first search for the method in the SuperA
    class and if it doesn't find it there, it will search in the
    SuperB class.

      % Anonymous User - Jan. 30, 2004 11:26 pm:
       This is probably nitpicking, but you should probably explain that the order in which the superclasses are
       named in the subclass definition is what is important, not the fact that 'A' comes before 'B' in the alphabet
       (which an unsuspecting reader might assume).



More information about the ZDP mailing list