Examveda

How do you compare two objects in Ruby?

A. object1 == object2

B. object1.equals(object2)

C. object1 === object2

D. compare(object1, object2)

Answer: Option A


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby