πŸ“Š Ruby
Q. What does the private keyword do in a Ruby class?
  • (A) It makes methods private, accessible only within the class
  • (B) It makes methods public, accessible from outside the class
  • (C) It makes methods protected, accessible only within the class and its subclasses
  • (D) It defines class variables
πŸ’¬ Discuss
βœ… Correct Answer: (A) It makes methods private, accessible only within the class

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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