Creating and Accessing Dynamic Objects in C++
While you can create pointers with ordinary primitive objects, that’s not where the real power of pointers lie. The power is to reference objects that we create, so they don’t take up too much space in lower memory locations, and we can work on passing them around. To create an object dynamically on the heap,…