πŸ“Š Ruby
Q. What does the `protected` keyword do in Ruby?
  • (A) Makes methods accessible from outside the class
  • (B) Restricts access to methods below it
  • (C) Makes methods accessible from anywhere in the code
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Restricts access to methods below it

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
198
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate