Iam having two classes Class A and Class B.
class A
{
int width;
int height;
};
class B
{
A obj;
};
i'm trying to create a pointer like below
B* myObj = new B();
Here, myObj gets created in the heap. where does obj, width and height gets created?