I was reading my cert book and it said: "static methods can't be overridden. This dioesnt mean they can't be redefined in a subclass..."
Here is my problem:
The compiler complains on the last method def that the return type is not compatable with animal. My question is that if I can't override a static method, why does the compiler care that I have a return type of String instead of void?
Thanks againf folks.
There are only 10 types of people in this world... Those who understand binary and those who don't.