Class is a blueprint for an object, written with the class keyword. Object instances are created from a class using .new.
ruby
class Car
def drive
puts "The car is moving."
end
end
my_car = Car.new
my_car.driveCar class has a drive method inside it. Car.new creates a new Car object, and my_car.drive calls the method.
You should see
The car is moving.Info
Always start Ruby class names with a capital letter, like Car or UserProfile.