edu.pdx.cs399J.lang
Class SayWhat

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


Constructor Summary
SayWhat()
           
 
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
 

Constructor Detail

SayWhat

public SayWhat()
Method Detail

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.