Java - Polymorphism
Consider this code:
Which statement about this overriding is correct?
class Animal {
Number getValue() { return 10; }
}
class Dog extends Animal {
@Override
Integer getValue() { return 20; }
}Which statement about this overriding is correct?
