fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Child {
  5. private: string name;
  6. public: Child(string name) { this->name = name; }
  7. public: string getName() { return this->name; }
  8. };
  9. class Human {
  10. private: Child child_;
  11. public: Human(Child child) : child_(child) { }
  12. };
  13.  
  14.  
  15. int main() {}
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout
Standard output is empty