M

Mr. Dubey • 100.28K Points
Coach

Q. In Ruby, which method is used to define a getter and setter for an instance variable?

  • (A) get_set
  • (B) attr
  • (C) read_write
  • (D) instance
  • Correct Answer - Option(B)
  • Views: 59
  • 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.


Question analytics