Complete the code to declare a class named Car.
class [1] end
The class name must start with a capital letter. Car is the correct class name.
Complete the code to define a method named start inside the class.
class Car def [1] puts 'Car started' end end
The method name should be start as requested.
Fix the error in the class declaration by completing the blank.
class [1] def initialize @speed = 0 end end
Class names must start with a capital letter. Car is correct.
Fill both blanks to create a class Bike with a method ride that prints 'Riding'.
class [1] def [2] puts 'Riding' end end
The class name is Bike and the method name is ride as requested.
Fill all three blanks to create a class Plane with a method fly that prints the speed stored in @speed.
class [1] def [2] puts "Flying at #{ [3] } km/h" end end
The class is Plane, method is fly, and the instance variable is @speed.
