Class TestCreature

java.lang.Object
  extended by TestCreature

public class TestCreature
extends java.lang.Object

TestCreature is a tester/demonstration program to exercise the Thing class hierarchy. Students write this and submit it; try uses another tester.

Since:
2007

Field Summary
static int CREATURE_COUNT
          number of creatures to create
static int THING_COUNT
          number of things to create
 
Constructor Summary
TestCreature()
           
 
Method Summary
static void main(java.lang.String[] args)
          TestCreature.main tests the hierarchy of Things and Creatures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THING_COUNT

public static final int THING_COUNT
number of things to create

See Also:
Constant Field Values

CREATURE_COUNT

public static final int CREATURE_COUNT
number of creatures to create

See Also:
Constant Field Values
Constructor Detail

TestCreature

public TestCreature()
Method Detail

main

public static void main(java.lang.String[] args)
TestCreature.main tests the hierarchy of Things and Creatures. Steps:
- create some Creature instances (i.e. an array of them)
- create some simple Thing instances
- add the Creature instances to the array of simple Thing instances
- print a heading "Things:" followed by a blank line
- print each thing, which each print one line about themeselves
- print a blank line
- print a heading "Creatures:" followed by a blank line
- print each creature
- print a blank line
NOTE: this description is for the FINAL version.

Parameters:
args - -- unused