Vidyalelo
Ruby Programming · Q5

Advanced Topics in Ruby

Programming · Ruby Programming · question 5

Q5

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
Answer
D.
Determining an object's type based on its methods

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board