# 45 - object oriented python class Car(): ''' A simple class that describes a car ''' def __init__(self, model, cost): self.model = model self.cost = cost def start(self): ''' starts the car ''' print(self.model.title() + " is now starting.") #print("Car is now starting.") # class vs object # class is a blueprint for an object ''' myCar = Car("civic", "$25k") myCar.start() print("\nCreating new car ... \n") my2ndCar = Car("ford", "$24k") my2ndCar.start() ''' myCar = Car("civic", "28k") myCar.start()