Answers for "inherit functions from other classes"

0

inherit functions from other classes

class Common(object):
    def __init__(self,x):
        self.x = x
    def sharedMethod(self):
        print self.x

class Alpha(Common):
    def __init__(self):
        Common.__init__(self,"Alpha")
Posted by: Guest on May-22-2021

Code answers related to "inherit functions from other classes"

Python Answers by Framework

Browse Popular Code Answers by Language