Package edu.pdx.cs410J.j2se15
Class OverrideSuperclass
java.lang.Object
edu.pdx.cs410J.j2se15.OverrideSuperclass
- Direct Known Subclasses:
OverrideExample
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
If this method is removed from this class, its subclassOverrideExample
will not complile.
-
Constructor Details
-
OverrideSuperclass
public OverrideSuperclass()
-
-
Method Details
-
methodToOverride
If this method is removed from this class, its subclassOverrideExample
will not complile.
-