A Admin • 833K Points Coach Q. What is the purpose of the attr_reader method in Ruby classes? (A) To create only getter methods for instance variables (B) To create only setter methods for instance variables (C) To create both getter and setter methods for instance variables (D) To create instance methods Correct Answer - Option(A) Views: 23 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.