Loading…
Define a Car class with make and model attributes and a method drive() that prints 'Vroom!'. Create Car(Toyota, Corolla) and call drive().
Expected output: Vroom!
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.