πŸ“Š Ruby
Q. In Ruby, which method is used to define getter and setter methods for class attributes?
  • (A) attr_accessor
  • (B) get_set
  • (C) reader_writer
  • (D) attr_reader
πŸ’¬ Discuss
βœ… Correct Answer: (A) attr_accessor

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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