Ruby - Classes and Objects
Which Ruby expression correctly tests if variables
x and y reference the same object?x and y reference the same object?equal? checks if two variables point to the same object.== compares content, eql? is for hash key equality, and comparing object_id to class is invalid.equal? tests object identity [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions