Ruby - Classes and Objects
In Ruby, what does the method
equal? check between two objects?equal? check between two objects?equal? method purposeequal? method checks if two variables reference the exact same object in memory, not just if they look alike.==, which compares content, equal? is about object identity.equal? checks object identity = D [OK]equal? means same object, not just same value [OK]equal? with ==equal? compares contentequal? checks class type15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions