1 2 3 4 5 6 7 8 9
#include "eto.h" int main() { _animal *eto_animals[] = {new _tori("ピーちゃん"), new _inu("ポチ")}; for (int i = 0; i < 2; i++) { eto_animals[i]->show(); } return 0; }