>>993

class Child {
private: string name;
public: Child(string name) { this->name = name; }
public: string getName() { return this->name; }
};
class Human {
private: Child child;
public: Human(Child child) {
this->child = child;
}
};

こういう設計の書き方したいのですが無理なんですかね