This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Labrador lab = new Labrador("Hershey", "chocolate"); System.out.println(lab.getName() + " says " + lab.speak()); System.out.println("The average breed weight for a labrador is " + lab.avgBreedWeight()); System.out.println("The average breed weight for a yorkshire is " + yorkie.avgBreedWeight()); } }...
View Full Document
This note was uploaded on 03/22/2010 for the course CS 202 taught by Professor Fong during the Spring '10 term at SIU Carbondale.
- Spring '10
- Computer Science