Answers

Question and Answer:

  Home  Ruby Developer

⟩ Please explain the three levels of access control for Ruby methods?

In Ruby, methods may either be public, protected, or private. Public methods can be called by anyone. Protected methods are only accessible within their defining class and its subclasses. Private methods can only be accessed and viewed within their defining class.

 233 views

More Questions for you: