Python - Inheritance and Code Reuse
Given these classes:
What will
class Vehicle:
def __init__(self, brand):
self.brand = brand
def info(self):
return f"Vehicle brand: {self.brand}"
class Car(Vehicle):
def __init__(self, brand, model):
super().__init__(brand)
self.model = model
def info(self):
return f"Car brand: {self.brand}, model: {self.model}"What will
print(Car('Toyota', 'Corolla').info()) output?