πŸ“Š Ruby
Q. What does the term "duck typing" refer to in Ruby?
  • (A) The process of explicitly casting objects to a specific type
  • (B) Assigning types to variables based on their values
  • (C) The practice of allowing objects of different types to respond to the same method call
  • (D) Determining an object's type based on its methods
πŸ’¬ Discuss
βœ… Correct Answer: (C) The practice of allowing objects of different types to respond to the same method call

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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