Python - Inheritance and Code Reuse
You have two parent classes:
What is the output?
class A:
def greet(self):
return "Hello from A"
class B:
def greet(self):
return "Hello from B"
class C(A, B):
def greet(self):
return super().greet() + " and C"
print(C().greet())What is the output?
