Say I\'ve got a class like this:
class Test { int x; SomeClass s; }
And I instantiate it like this:
Test* t = new Test;
Since you're using new, you're allocating your object on the heap. Consequently, every members of the Test pointed by t are on the heap too.