A Admin • 828.03K Points Coach 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 Correct Answer - Option(D) Views: 4 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.