πŸ“Š Ruby
Q. What does the attr_reader method do in Ruby?
  • (A) Defines a reader method for instance variables
  • (B) Defines a writer method for instance variables
  • (C) Defines both reader and writer methods for instance variables
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Defines a reader method for instance variables

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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