Simple question really, addressed to Python 3 usage: How do I make the parent work using only the child instance c
?
class Parent:
def work(self):
print("Parent working")
class Child(Parent):
def work(self):
print("Child working")
c = Child()
c.work()
I do not want to modify my Child class as it is from an outside library. I'm looking for something like this:
>>> c.super().work() # can't do that as super is not a Child method
Parent working