I have a the following class:
class CObj {
private:
MyOtherClass _member;
};
and the following code that creates an instance of CObj class:
CObj* obj = new Cobj;
obj is allocated on the heap, but: Are CObj::_member allocated on the heap too? or on the stack?