Stack-allocated object:
Common::String str;

Heap-allocated object:
Common::String *str = new Common::String();

Stack-allocations are destroyed on leaving the scope they were allocated in (just like every other local variable), heap-allocations need explicit deallocation. (delete)