can i implement virtual functions in python ?

Paradox JoeyTaj at netzero.com
Tue Sep 30 16:04:52 EDT 2003


I think you can do something like this.

class Virtual:
    def myFunc(self, x):
        pass

class Implement(Virtual):
    def myFunc(self, x):
        return x * x




More information about the Python-list mailing list