+ 1

Whats the difference between the objects?

So I got bored and wrote this: https://code.sololearn.com/c4lb3Nk7mu4j/?ref=app If you look in main, I created objects in 2 ways. What's the difference between the 2 ways? Is one better than the other?

3rd Jul 2019, 4:54 PM
Daniel Cooper
1 Réponse
+ 1
~ swim ~ So another question I just thought of In a game, for example, Halo 5's forge, when I spawn an object from the menu, would that be like creating an object on the heap? Another example would be Minecraft when spawing a creature or placing a block.
3rd Jul 2019, 9:45 PM
Daniel Cooper