0

Dynamic memory

Ok, so this is where it gets hard, so.. I have a question. I thought of an example about new and delete about the heap. Someone tell me if it’s correct. I have 3 classes, bow, sword, and gun. All of these are new integers(?). I choose one, and it deletes the others because I don’t need to use it. Is this correct?

21st Oct 2019, 6:41 PM
Jake
1 Resposta
0
Im not really trying to do anything, Im just trying to understand dynamic memory in an easier way I understand
23rd Oct 2019, 7:41 PM
Jake