edu.pdx.cs399J.lang
Class SayWhat
java.lang.Object
edu.pdx.cs399J.lang.SayWhat
public class SayWhat
- extends Object
This class has a main method that demonstrates the effects of
inheritance and virtual method dispatches using the animal class
hierarchy.
|
Method Summary |
static void |
main(String[] args)
This main method creates a number of animals and prints out their
names and what they say. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SayWhat
public SayWhat()
main
public static void main(String[] args)
- This main method creates a number of animals and prints out their
names and what they say.
Copyright © 2000-2009 Portland State University. All Rights Reserved.