How can 2 objects be compared to be equal if there are multiple data variables? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can 2 objects be compared to be equal if there are multiple data variables?

i mean the menu just autogenerates a template. you still have to modify the code which compares each variable. in this case it is 'name'

10th Mar 2016, 7:57 AM
Ernest Tan
Ernest Tan - avatar
1 Answer
+ 1
You can modify the equality testing the way you want it to function.
18th May 2016, 4:45 PM
James Flanders