Closed E0735389 closed 9 months ago
https://github.com/se-edu/se-book/blob/1bda68eef0297940dbbcb57bd5e490c4ddb60d52/oop/inheritance/overriding/text.md#L9
Method overriding is when a sub-class changes the behavior inherited from the parent class by re-implementing the method. Overridden methods have the same name, same type signature, and same return type.
Actually, Java supports covariant return type. https://stackoverflow.com/a/14694885 (since Java 5, as pointed out in the answer)
Fixed. Thanks @E0735389 for the heads up.
https://github.com/se-edu/se-book/blob/1bda68eef0297940dbbcb57bd5e490c4ddb60d52/oop/inheritance/overriding/text.md#L9
Actually, Java supports covariant return type. https://stackoverflow.com/a/14694885 (since Java 5, as pointed out in the answer)