Extend the Animal class via inheritance. Make a purely virtual function called "can_fly" that returns true if the Animal can fly. -Create a new class called Cat that is derived from Animal. -Create a new class called Dragon that is derived from Cat. -Create a new class called Bird that is derived from Animal. Due Monday. #include "Animal.h" #include "Cat.h" #include "Dragon.h" #include "Bird.h" #include #include using namespace std; int main() { stack s; s.push( new Dragon()); s.push( new Bird() ); s.push( new Cat() ); while(!s.empty()) { Animal *t = s.top(); //use top to get the value of the top element s.pop(); // in STL, pop is a void function, so must use top as above if(t->can_fly()) cout << "This animal can fly " << endl; else cout << "This animal cannot fly " << endl; } } /* The output of this program would be: This animal cannot fly This animal can fly This animal can fly */