Results for “java polymorphism example code error site:bugs.java.com solution”
bugs.java.com
Bug ID: JDK-4106143 About polymorphism: changing the return type...
According to the actual Java specification, the following code would produce a compiler error: < code> abstract class Aclass {. public abstract Number giveMeANumber()In fact, I see some advantage in allowing this kind of change. The following discussion gives two examples