Created
October 13, 2016 22:54
-
-
Save skiabox/5b97e0ccb5330eec051fcf1d42f718ae to your computer and use it in GitHub Desktop.
Lion 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 09/10/2016. | |
*/ | |
public class Lion extends Feline{ | |
//Lion methods | |
@Override | |
public void makeNoise() { | |
System.out.println("The lion is growling"); | |
} | |
@Override | |
public void eat() { | |
System.out.println("The lion is eating " + Food.MEAT); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment