Challenge for Classes

Challenge

What 2 words of code should be added below to give the Car both a getter and setter method for the variable :speed?

class Car
  #one line of code
end

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]