Q. What is the purpose of the attr_accessor method in Ruby classes?
β
Correct Answer: (D)
Defines both reader and writer methods for class attributes
You must be Logged in to update hint/solution