edu.pdx.cs399J.j2se15
Class OverrideExample
java.lang.Object
edu.pdx.cs399J.j2se15.OverrideSuperclass
edu.pdx.cs399J.j2se15.OverrideExample
public class OverrideExample
- extends OverrideSuperclass
This class demonstrates the Override annotation.
- Since:
- Winter 2005
- Author:
- David Whitlock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverrideExample
public OverrideExample()
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
public void deprecatedMethod()
- Deprecated.
- This method used to do something interesting, but we don't need
it anymore.
Copyright © 2000-2009 Portland State University. All Rights Reserved.