Created
October 13, 2016 22:51
-
-
Save skiabox/6427b5d32efb31d0b03887de415b17b7 to your computer and use it in GitHub Desktop.
Cat 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 Cat extends Feline{ | |
@Override | |
public void makeNoise() { | |
System.out.println("The cat meows"); | |
} | |
@Override | |
public void eat() { | |
System.out.println("The cat eats " + Food.GRASS); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment