edu.pdx.cs399J.j2se15
Class OverrideSuperclass

java.lang.Object
  extended by 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

Constructor Summary
OverrideSuperclass()
           
 
Method Summary
 void methodToOverride()
          If this method is removed from this class, its subclass OverrideExample will not complile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverrideSuperclass

public OverrideSuperclass()
Method Detail

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.