Tesla

Report a typo

Below you can see a class hierarchy:

class Car:
    def __init__(self, company, model):
        self.company = company
        self.model = model


class Tesla(Car):
    def __init__(self, model, year, color):
        super().__init__("Tesla", model)
        self.year = year
        self.color = color

Which of the following objects of the class Tesla has been created correctly?

Select one option from the list
___

Create a free account to access the full topic