Write a new static method in the subclass that has the same signature as the one in the superclass, thus hiding it
Answers
Answered by
0
Answer:
I am confused by the behaviour of the static method when it is overridden in the subclass. ... If method is not static, then according to polymorphism, method of the subclass is called when subclass
Similar questions