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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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