Class OverrideExample

java.lang.Object
edu.pdx.cs410J.j2se15.OverrideSuperclass
edu.pdx.cs410J.j2se15.OverrideExample

public class OverrideExample extends OverrideSuperclass
This class demonstrates the Override annotation.
Since:
Winter 2005
Author:
David Whitlock
  • Constructor Details

  • Method Details

    • methodToOverride

      public void methodToOverride()
      This method overrides a superclass's method. If the superclass's method is removed, this class will no longer compile because this method has an Override annotation.
      Overrides:
      methodToOverride in class OverrideSuperclass
    • deprecatedMethod

      Deprecated.
      This method used to do something interesting, but we don't need it anymore.