A

Admin • 828.03K Points
Coach

Q. What does the protected keyword do in Ruby classes?

  • (A) Allows access to methods within the class and its subclasses
  • (B) Restricts access to methods below it
  • (C) Allows access to methods from outside the class
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 3
  • 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.