On Apr 22, 11:10 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> > 2. Java interfaces solve a different problem than MI (used properly)
> > does: interfaces are there to make types polymorphic, whereas
> > inheritance's main use is to share behavior.
>
> But the *goal* of the polymorphy is mainly to have shared behavior.

Not at all.  The goal of polymorphism is to have objects of different
types usable in the same situation.  Two such classes might share some
behavior, but they don't have to.


Carl Banks
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to