Complete the code to declare a class named Vehicle.
class [1]: pass
The class name should be Vehicle with a capital V to follow naming conventions.
Complete the code to add an attribute named speed to the Vehicle class.
class Vehicle: def __init__(self, [1]): self.speed = speed
The constructor parameter should be named speed to match the attribute assignment.
Fix the error in the method that returns the speed of the vehicle.
class Vehicle: def __init__(self, speed): self.speed = speed def get_speed(self): return [1].speed
The method should return self.speed to access the instance attribute.
Fill both blanks to define a subclass Car that inherits from Vehicle and adds a new attribute brand.
class [1]([2]): def __init__(self, speed, brand): super().__init__(speed) self.brand = brand
The subclass is named Car and it inherits from Vehicle.
Fill all three blanks to complete the class diagram code with an association: Garage has many Cars.
class Garage: def __init__(self): self.[1] = [] def add_car(self, [2]): self.[3].append(car)
The Garage class has a list named cars to hold multiple Car objects. The method parameter is car, and the list cars is appended.