+ 1

class

The new operator instantiates an object and returns a reference to its location: what does this exactly mean

3rd Jul 2020, 2:30 PM
Tyler Paul
Tyler Paul - avatar
1 Respuesta
+ 8
It means when you create an object an address of the were the object is stored is returned using the "new" keyword and it's this address that is assigned to the variable. the object its self isnt assigned to the variable of type only the address of were the object is 👍
3rd Jul 2020, 2:35 PM
D_Stark
D_Stark - avatar