Q. What does the attr_accessor method do in Ruby OOP? (A) Creates constructor methods (B) Creates only a writer method (C) Creates only a reader method (D) Creates both reader and writer methods for class attributes ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (D) Creates both reader and writer methods for class attributes