Write a complete program with Animal and two subclasses Dog and Cat, each overriding describe().
Read a count n, then n pairs of a kind (dog or cat) and a name. Store them all in one Animal[] array.
Print each animal's description in order, then print how many of them are dogs.
For 3 then dog Rex cat Kit dog Bo:
Rex is a dog
Kit is a cat
Bo is a dog
2
The array type is Animal[], yet each element runs its own describe() — that is polymorphism at work.