Designing a graph study program
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Tue May 8 18:23:22 EDT 2007
In <1178659258.820806.110380 at l77g2000hsb.googlegroups.com>, andrea wrote:
> Interesting but what do you mean for two graph-implementatio that
> share the same interface??
> I don't have abstract classes or interfaces in python, am I wrong?
You are thinking of some kind of types or enforcements. If two classes
have some methods with the same names and the same semantics they share
the same interface. And a class that isn't meant to be instantiated or
doesn't implement all methods is an abstract class.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list