πŸ“Š Ruby
Q. What is the significance of the attr_writer method in Ruby classes?
  • (A) Defines only reader methods for class attributes
  • (B) Defines only writer methods for class attributes
  • (C) Defines constructor methods for class attributes
  • (D) Defines only reader methods for class attributes
πŸ’¬ Discuss
βœ… Correct Answer: (B) Defines only writer methods for class attributes

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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