46: virtual Mammal* Clone { return new Cat(*this); }
47: };
48:
49: Cat::Cat(const Cat & rhs):
50: Mammal(rhs)
51: {
52: cout << "Cat copy constructor..,\n";
53: }
54:
55: enum ANIMALS { MAMMAL, D0G, CAT };
56: const int NumAnimalTypes = 3;
57: int main
58: {
59: Mammal *theArray[NumAnimalTypes];
60: Mammal* ptr;
61: int choice, i;