Home | History | Annotate | Download | only in DefaultMethods

Lines Matching defs:eat

39      * of the {@link #eat} method.
44 * Return string representation of the eat action for Animal
46 * @return string representation of the eat action for Animal
48 default String eat() {
55 * The Dog class doesn't have its own implementation of the {@link #eat}
62 * The Mosquito class implements {@link #eat} method, its own implementation
69 * Return string representation of the eat action for Mosquito
71 * @return string representation of the eat action for Mosquito
74 public String eat() {
86 System.out.println(new Dog().eat());
89 System.out.println(new Mosquito().eat());