Created
October 12, 2016 19:56
-
-
Save skiabox/b1cc33c0f068d00d6dede049530a1695 to your computer and use it in GitHub Desktop.
Hippo class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.skiabox.java_apps2; | |
/** | |
* Created by administrator on 10/10/2016. | |
*/ | |
public class Hippo extends Animal{ | |
@Override | |
public void makeNoise() { | |
System.out.println("The hippo snarls"); | |
} | |
@Override | |
public void eat() { | |
System.out.println("The hippo is eating " + Food.GRASS); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment