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?
1 ответ
0
Im not really trying to do anything, Im just trying to understand dynamic memory in an easier way I understand