Question: What access controls does Ruby support for methods?

What access controls does Ruby support for methods?

Step by Step Solution

3.28 Rating (174 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The only easy way to change an objects state in Ruby is by calling one of its methods Control access to the methods and you have controlled access to the object A good rule of the thumb is never to ex... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Concepts of Programming Languages Questions!