Q. What is the purpose of encapsulation in Ruby classes?
β
Correct Answer: (A)
To hide the internal state of an object and restrict access to it
You must be Logged in to update hint/solution