+ 2
Array of objects
What is the use of line 14, 15 and 16 while there is line 13? What does line 13 do? https://code.sololearn.com/c2TwxvvW4W4l/?ref=app
3 Respostas
+ 6
The line 13 make the array of objects but every element of this array acutely is a pointer to object so when you make array you just make a pointers and the line 14,15,16 are making the pointer pointing to an object.
+ 2
Jay Matthews Zein Khalil tnx
@Zein Khalil "every element of this array acutely is a reference" is what you meant?
+ 2
Rishi
Exactly