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 272 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!