car = BlueCar('blue','volvo');
car.honk();
Answers
Answered by
4
class Car:
def __init__(self, colour, brand):
self.colour = colour
self.brand = brand
def honk(self):
print("Beep beep!")
car = Car("blue", "volvo")
car.honk()
Answered by
0
Answer:
class Car:
def __init__(self, colour, brand):
self.colour = colour
self.brand = brand
def honk(self):
print("Beep beep!")
car = Car("blue", "volvo")
car.honk()
Similar questions