Question about inheritance...
Oliver Andrich
oliver.andrich at gmail.com
Sat Oct 22 17:49:40 EDT 2005
Hi,
22 Oct 2005 14:40:09 -0700, KraftDiner <bobrien18 at yahoo.com>:
> I have a base class called Shape
> And then classes like Circle, Square, Triangle etc, that inherit from
> Shape:
>
> My quesiton is can a method of the Shape class call a method in Circle,
> or Square etc...?
even there would exist a way to accomplish that, I would suggest to
rethink your class hierachy. Such requirements can show serious design
problems.
Best regards,
Oliver
--
Oliver Andrich <oliver.andrich at gmail.com> --- http://roughbook.de/
More information about the Python-list
mailing list