How do you use the @Override annotation?
Created May 8, 2012
John Zukowski Use this annotation to tell the compiler that the method is supposed to be overriding a method in the superclass. If by chance it doesn't, the compiler tells you. This allows you to catch typos like wrong case or incorrect return types/parameters.
public class Over { public void overrideMe() { } } class SubOver extends Over { @Override public void overrideme() { } }