小弟有个问题如下:
Write a class called Animal with an overloaded sound() method. This method should be overloaded based on various primitive data types, and print different types of animal sounds ("oink", "honk", etc.), depending on which overloaded version is called. Write a main() that calls all the different versions. Create child classes (and test with the main method) for Pig, Sheep, Duck and Cow. NOTE: The sound() method does not generate the sound; it only prints the sound word to output.有没有人能指点迷津啊~~~
谢谢!