email me at borlaj@portlandschools.org
notes previous (09/07/06) submit the dump links  
 

HWJ15_Kennel

 

1. Print out the dogs name below the dog. (drawString)

2. Add a global variable in dog called size (small, medium, or large). This will be in the constructor as well. When you draw dog, it will draw the dog depending on the size.

3. Add a class for cat and allow the Kennel class to create an instance of cat and have it drawn.

4. Create a method for cat called meow that if the person hits the m key, the cat will meow. (for extra imaginary credit, make it say meow

5. Create a method for dog called move that will move the dog 50 pixels when the person clicks the dog's head.