πŸ“Š Ruby
Q. What is the purpose of the private keyword in Ruby classes?
  • (A) Restricts access to methods below it
  • (B) Allows access to methods from outside the class
  • (C) Allows access to methods within the class and its subclasses
  • (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

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