Lecture 2 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

Add a class Tiger to the IAnimal interface. A Tiger has a name, length, and the number of pounds of meat it consumes daily. Develop a method hasGivenName over IAnimals that consumes a name and produces true if the animal has the given name. The method produces false for animals that don't have a name.