Calling Superclass Constructors : Constructor : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Constructor »

 

Calling Superclass Constructors


class Super:
    def __init__(self, x):
        print "super" + x

class Sub(Super):
    def __init__(self, x, y):
        Super.__init__(self, x)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Constructor