A

Admin • 833K Points
Coach

Q. What does the attr_accessor method do in Ruby?

  • (A) Creates getter and setter methods for an instance variable
  • (B) Creates only getter methods for an instance variable
  • (C) Creates only setter methods for an instance variable
  • (D) Creates private methods for an instance variable
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Ruby
  • Hashtags:

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.