[Tutor] class question
Alan Gauld
alan.gauld at btinternet.com
Wed Jan 26 12:08:07 CET 2011
"Karim" <karim.liateni at free.fr> wrote
> Program towards interface that means you have to use inheritance.
Just to be picky, you can program by interface without using
inheritance. Inheritance is only needed to implement interfaces
in languages like C++. In Python (and other dynamically
bound OOP languages) you can use polymorphism without
inheritance.
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list