Examveda
Examveda

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

Answer: Option C


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby

What is a singleton class in Ruby?

A. A class that can have only one method

B. A class that is used to define methods for a single object

C. A class that can have only one subclass

D. A class that can have only one method