Python - Inheritance and Code Reuse
Given this code, what will
print(obj.info()) output?class Vehicle:
def info(self):
return "Vehicle info"
class Car(Vehicle):
def info(self):
parent_info = super().info()
return parent_info + ", Car details"
obj = Car()
print(obj.info())