M

Mr. Dubey • 52.70K Points
Coach

Q. What is the purpose of encapsulation in Ruby classes?

  • (A) To hide the internal state of an object and restrict access to it
  • (B) To expose the internal state of an object and allow unrestricted access to it
  • (C) To define class methods
  • (D) To define instance methods
  • Correct Answer - Option(A)
  • Views: 50
  • 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