Class SayWhat

java.lang.Object
edu.pdx.cs410J.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 Details

  • Method Details

    • main

      public static void main(String[] args)
      This main method creates a number of animals and prints out their names and what they say.