Even if method override return type is specified as an inheritance relation object type, There is no error on the compilation, is it okay?
java
It's a self-answer http://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.4.5
It supports specialization in upper-lower relationships
© 2024 OneMinuteCode. All rights reserved.