3 ms·
I think the main confusion is that when you override a method in Java, similar to other languages like C++, it considers not only the name but actually the enti
by jchw 3y ago
I think the main confusion is that when you override a method in Java, similar to other languages like C++, it considers not only the name but actually the entire function signature. That's in fact why overloading works to begin with, because of the fact that the identity of a method is not just its name but in fact it's signature.