instantiate_objects
🏗️ Instantiate Objects
After defining a class, you create objects (instances) using the new
method. Each object can have its own state, stored in instance variables. Instantiation lets you work with multiple independent objects.
person = Person.new
puts person.class # => Person