Class Rodent

java.lang.Object
  extended byRodent
Direct Known Subclasses:
Gerbil, Hamster, Mouse

public abstract class Rodent
extends java.lang.Object

The root of the rodent hierarchy. Part of exercise 7.6 and 7.7. This class is abstract but has concrete methods that are overwritten in the subclasses. Because the class is abstract it is not possible to make instances of the class. As an example Rodent r = new Rodent() does not work. In this way one can say that concrete methods in abstract classes that are overwritten in subclasses are dead code .

Version:
1.0
Author:
Kristian Torp, torp (at) cs (dot) aau (dot) dk

Constructor Summary
Rodent()
           
 
Method Summary
 void myself()
          Tell how I'm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rodent

public Rodent()
Method Detail

myself

public void myself()
Tell how I'm