πŸ“Š Ruby
Q. In Ruby, what does the private keyword do when used in a class?
  • (A) Restricts access to methods below it
  • (B) Allows access to methods below it
  • (C) Makes all methods public
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Restricts access to methods below it

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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