Question about inheritance...
Ron Adam
rrr at ronadam.com
Sat Oct 22 18:10:02 EDT 2005
KraftDiner wrote:
> 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...?
This looks familiar. :-)
Yes, it can if it has references to them.
Could you explain a little better what you are doing.
Since I'm working on the same (or similar) thing maybe we can share our
results, (or efforts).
Cheers,
Ron
More information about the Python-list
mailing list