M

Mr. Dubey • 53.53K Points
Coach

Q. What is the purpose of the `attr_accessor` method in Ruby?

  • (A) Defines both reader and writer methods for instance variables
  • (B) Defines a reader method for instance variables
  • (C) Defines a writer method for instance variables
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 42
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics