Intermediate
Ruby
Q79 / 100
What does "Object#is_a?(SomeClass)" check, and how does it relate to "kind_of?"?
Correct! Well done.
Incorrect.
The correct answer is B) is_a? and kind_of? are aliases that check whether an object is an instance of a class or one of its ancestors/included modules
B
Correct Answer
is_a? and kind_of? are aliases that check whether an object is an instance of a class or one of its ancestors/included modules
Explanation
is_a? and kind_of? are synonyms that return true if the object's class, superclass chain, or included modules include the given class/module.
Progress
79/100