3.
Sparky= bark, bark lassie=animalSparky 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