关于c++类中类对象中类对象的,

比如Zoo类有FoodSeller类中对象,FoodSeller对象中有AnimalFood对象和Money对象,要怎么在Zoo构造函数中初始化才可以

以及在Adult中创建child的指针不成功要怎么弄
新手没有币悬赏大神解决一下

不太对啊,解释,我是通过类对象的函数去访问也不行啊。

 比如
class AnimalFood
{
public: AnimalFood(int x) {}
};
class Money
{
public: Money(int x) {}
};
class FoodSeller
{
public: AnimalFood af;
Money m;
FoodSeller(int x, int y) : ad(x), m(y) { }
}
class Zoo
{
public: FoodSeller fs;
Zoo() : fs(1,2) { }
};