M

Mr. Dubey • 97.30K Points
Coach

Q. What is the purpose of the attr_reader method in Ruby classes?

  • (A) To create only getter methods for instance variables
  • (B) To create only setter methods for instance variables
  • (C) To create both getter and setter methods for instance variables
  • (D) To create instance methods
  • Correct Answer - Option(A)
  • Views: 78
  • 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