001package edu.pdx.cs410J.j2se15; 002 003/** 004 * This class demonstrates the {@link Override} annotation. 005 * 006 * @author David Whitlock 007 * @since Winter 2005 008 */ 009public class OverrideExample extends OverrideSuperclass { 010 011 /** 012 * This method overrides a superclass's method. If the superclass's 013 * method is removed, this class will no longer compile because this 014 * method has an {@link Override} annotation. 015 */ 016 @Override public void methodToOverride() { 017 018 } 019 020 /** 021 * This method used to do something interesting, but we don't need 022 * it anymore. 023 */ 024 @Deprecated public void deprecatedMethod() { 025 026 } 027}