class | SoloLearn: Learn to code for FREE!



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

7/3/2020 2:30:47 PM

Koustav Paul

1 Answer

New Answer


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 👍