Method Overriding
A subclass provides its own version of an inherited method, chosen at run time.
Easy
Always use @Override so the compiler catches signature mistakes. Can't reduce visibility or override final/static methods.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.