12 // Construct an animal with a name
13 Animal(const char* name);
18 // Return the animal's name
19 const char* get_name() const;
25 typedef std::vector<Animal*> AnimalsType;
26 typedef AnimalsType::iterator IterType;
33 /* Create a new animal */
34 static Animal* create_animal(const char* name);
36 /* Add a new animal to the zoo */
37 void add_animal(Animal* animal);
39 /* Remove an animal from the zoo */
40 Animal* remove_animal(size_t i);
42 /* Return the number of animals in the zoo */
43 size_t get_num_animals() const;
45 /* Return a pointer to the ith animal */
46 Animal* get_animal(size_t i) const;
49 #endif /*_EXAMPLE_H_*/