A Admin • 833K 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: 20 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.