import tester.*; interface IAnimal { } class Snake implements IAnimal { String name; int weight; String food; Snake(String name, int weight, String food) { this.name = name; this.weight = weight; this.food = food; } } class Dillo implements IAnimal { double weight; boolean isAlive; Dillo(double weight, boolean isAlive) { this.weight = weight; this.isAlive = isAlive; } } class Posn { double x; double y; Posn(double x, double y) { this.x = x; this.y = y; } } class Ant implements IAnimal { double weight; Posn location; Ant(double weight, Posn location) { this.weight = weight; this.location = location; } } interface IGrade { } class NoGrade implements IGrade { NoGrade() { } } class NumGrade implements IGrade { int n; NumGrade(int n) { this.n = n; } } class Examples{ Snake slinky = new Snake("Sinky", 12, "rats"); Dillo dillo1 = new Dillo(7, true); Dillo dillo2 = new Dillo(2, false); Ant ant1 = new Ant(0.001, new Posn(5, 2)); Posn home = new Posn(0, 0); Ant ant2 = new Ant(0.0005, home); IAnimal suzy = new Snake("Suzy", 8, "bananas"); IGrade notTaken = new NoGrade(); IGrade barelyPassed = new NumGrade(75); }