Default package | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Default package

In this code answer is coming 11 instead of 10. Why? https://code.sololearn.com/cD3hyC4MwD3F/?ref=app

2nd Nov 2018, 8:53 AM
harshit
harshit - avatar
1 Antwort
+ 5
line 14: obj2 = obj1; that means that both variables point to the same object in memory.
2nd Nov 2018, 11:06 AM
Al Toe