Code Editor
Learn
Object-Oriented Programming I

Instantiating Your First Object

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")
Report a Bug
If you see a bug or any other issue with this page, please report it here.