Q. What is the purpose of method overriding in Ruby?

  • (A) To provide a new implementation for a method in the superclass
  • (B) To hide a method from the superclass
  • (C) To create a new method in the subclass
  • (D) To provide access to private methods
πŸ’¬ Discuss
βœ… Correct Answer: (A) To provide a new implementation for a method in the superclass

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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