πŸ“Š Ruby
Q. In Ruby, what is the purpose of method overloading?
  • (A) To provide multiple definitions for the same method with different parameters
  • (B) To override a method in the superclass
  • (C) To provide a new implementation for a method in the subclass
  • (D) To create private methods
πŸ’¬ Discuss
βœ… Correct Answer: (A) To provide multiple definitions for the same method with different parameters

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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