class HUMAN { protected: char *gene; public: char *experience } class MAN : public HUMAN { public: HRESULT InsertTo(HUMAN); } extern HUMAN kanojo; int main() { MAN myself; myself->InsertTo(kanojo); return 0; }
こうか。 class MAN : public HUMAN { private: bool doutei; public: HRESULT InsertTo(HUMAN); }; class MOOTOKO : public MAN { private: const bool doutei = true; };