Declare a member function speak() for each of the class with different
implementation such as cout <<”A dog speaks.”<<endl; and cout <<”A cat
Write two overloaded functions named speak(…).
If you pass a Dog argument to speak functions, the relevant speak function should display the Dog’s name and a description of how dogs speak (for example, “Spot says woof”). If you pass a Cat argument to speak functions, then it should display the Cat’s name and a description of how cats speak (for example, “Tiger says meow”).
In your main program, instantiate a dog instance and a cat instance, try to activate the member functions and the overloaded functions
Ive got everything done except the overloaded function part. I know how to overload functions using numeric values like an int and a double but not what he is asking what is another approach to this?