The lifetime of Dynamic Memory is tied to the scope of the object that encapsulates it, i.e. the memory is allocated in the constructor, and freed in the destructor.
The lifetime of Dynamic Memory is tied to the scope of the object that encapsulates it, i.e. the memory is allocated in the constructor, and freed in the destructor.