Friday, August 5, 2011

Chapter 13: Assignment 9

3.
Sparky= bark, bark lassie=animal

Sparky is generating a bark bark because you extended out the Animal class to Dog. and it returns a string of bark bark.

lassie is generating animal because thats what her class is calling.

8.
New Dog Lassie= animals[0]
New Cat fluffy= animals[1]

No comments:

Post a Comment