classes and interfaces

s99999999s2003 at yahoo.com s99999999s2003 at yahoo.com
Tue Jun 27 11:41:58 CEST 2006


hi
i come from a non OO environment. now i am learning about classes. can
i ask, in JAva, there are things like interface. eg
public interface someinterface {
   public somemethod ();
   ....
   ...
}

In python , how to implement interface like the above? is it just
define a class??

class someinterface:
     def somemethod: blah....

thanks




More information about the Python-list mailing list