πŸ“Š Ruby
Q. In Ruby, what does the attr_reader method do?
  • (A) Defines a setter method
  • (B) Defines a getter method
  • (C) Defines both getter and setter methods
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Defines a getter method

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
120
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate