public class Fish { private String name; private int size; private boolean isAlive; /* * TODO: Write a Fish constructor that takes in a name and size as the * argument. Set the fish's variables to these values and set * it to be alive. */ /* * TODO: Fill in the accessors and mutator below. */ /** * The name of the fish. */ public String getName() { } /** * The size of the fish. */ public int getSize() { } /** * The liveness of the fish. */ public boolean getIsAlive() { } /** * The mutator for the isAlive variable. */ public void setIsAlive(boolean isAlive) { } /** * Attempts to eat a fish. * @param fish The fish to try and eat * @return Whether or not the eating was successful */ public boolean eat(Fish fish) { } /** * Indicates that the fish has been successfully eaten by another fish. * @param fish The fish that ate the current fish * @return Whether or not the fish was actually eaten */ protected boolean eatenBy(Fish fish) { } /** * Overriding toString. Should return things like "Sharky the Shark", etc. */ @Override public String toString() { return name + " the " + getClass().getName(); } }