Package edu.pdx.cs410J.j2se15
Class OverrideExample
java.lang.Object
edu.pdx.cs410J.j2se15.OverrideSuperclass
edu.pdx.cs410J.j2se15.OverrideExample
This class demonstrates the
Override
annotation.- Since:
- Winter 2005
- Author:
- David Whitlock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
This method overrides a superclass's method.
-
Constructor Details
-
OverrideExample
public OverrideExample()
-
-
Method Details
-
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 anOverride
annotation.- Overrides:
methodToOverride
in classOverrideSuperclass
-
deprecatedMethod
Deprecated.This method used to do something interesting, but we don't need it anymore.
-