Question from the Ruby test

What is the output of the following code? class Person attr_accessor :name end person = Person.new person.name = 'John' puts person.name

Expert

What is attr_accessor for?

Author: HivebriteStatus: PublishedQuestion passed 214 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!