Well by inheritance B has all the methods, properties etc you have in A. So
the answer is yes, if A has the foobar method then B will have a foobar
method.

Or do I misunderstand your question?
--
     Andy McKay, Developer, ActiveState
     http://www.ActiveState.com
     Programming for the People


----- Original Message -----
From: "Daniel Rusch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 17, 2000 8:42 AM
Subject: [Zope] Product inhetitance question


> Hey all,
>
> Say I have a fully functional (and more importantly, working) Product
> will call A.
>
> I want to extend this Product's capabilities so I wish to derive another
> class from it, call it B.
>
> No problem,
>
> class B(A):
>     .........
>
>
> The question is, (I think the answer is no) is there a way to inherit
> (i.e. reuse common code and extend it) the manage_Add function and the
> dtml files from A???
>
> Thanks,
>
> DR
>
>
>
> _______________________________________________
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to