/** * practice assignment * * Hhunter * 9/22 */ public class Driver { public static void main(String [] args) { Animal grizzly = new Animal(500, "Grizzly"); Animal noName = new Animal(); Animal spottedOwl = new Animal(20, "owl"); Animal undefined = new Animal(5); System.out.println(undefined.returnName()); grizzly.born(100); spottedOwl.died(5); int amt = grizzly.returnStatus(); System.out.println(amt); // 600 should print here amt = spottedOwl.returnStatus(); System.out.println(amt); // 15 should print here //little tougher System.out.println(spottedOwl.returnName() + " has " + spottedOwl.returnStatus() + " left in it's species."); //The line above will print: // owl has 15 left in it's species. } }