Learn

Perfect! Now we’re ready to start creating objects.

We can create an instance of a class just by calling .new on the class name, like so:

me = Person.new("Eric")

Instructions

1.

Create a variable, matz, and set it equal to calling .new on your Person class. Pass .new the name “Yukihiro” as its only argument.

Folder Icon

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Already have an account?