Dynamic Memory
Apress eBooks · 2009
Declaring pointers is all well and good, but real programs need to do more. The next step is to learn how to create new objects on the fly, at runtime. Your program takes full control over the lifetime of these objects, destroying the objects only when the program is done using them. This Exploration details how to allocate and free memory dynamically. It also continues to develop the artifact and related classes from Exploration 56. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.