M

Mr. Dubey • 52.70K Points
Coach

Q. What does the protected keyword do in a Ruby class?

  • (A) It makes methods protected, accessible only within the class and its subclasses
  • (B) It makes methods private, accessible only within the class
  • (C) It makes methods public, accessible from outside the class
  • (D) It defines class variables
  • Correct Answer - Option(A)
  • Views: 49
  • 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