Super Example in Python

10 / 100 SEO Score
class Base:
def geta(self):
return 10
def getb(self):
return 20
class Derived(Base):
def geta(self):
return 100
def sum(self):
print(super().geta()+self.geta()+self.getb())
d=Derived()
d.sum()

Leave a Reply

Your email address will not be published. Required fields are marked *