That object would be created on the stack, and then destroyed on the way out of the function
The Data segment is used for all variables declared outside the scope of any function
The stack is used for all variables declared within a function; in the following example
void afunction()
{
MyClass *pMyClass=new MyClass();
}
The pointer is local to the function (on the stack) but the class is on the heap