edu.pdx.cs399J.j2se15
Class OverrideSuperclass
java.lang.Object
edu.pdx.cs399J.j2se15.OverrideSuperclass
- Direct Known Subclasses:
- OverrideExample
public class OverrideSuperclass
- extends Object
This class contains one method that is overridden in a subclass. Because the subclass's method is
annotated with an Override annotation, it will no longer
compile if the method is removed from this class, the superclass.
- Since:
- Winter 2005
- Author:
- David Whitlock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverrideSuperclass
public OverrideSuperclass()
methodToOverride
public void methodToOverride()
- If this method is removed from this class, its subclass
OverrideExample will not complile.
Copyright © 2000-2009 Portland State University. All Rights Reserved.