Created
August 18, 2021 08:49
-
-
Save xProgrammer-007/7593398e52e1e2fc0c3ecfcae1ff17d6 to your computer and use it in GitHub Desktop.
Simple extends using interface
This file contains hidden or 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
interface AnimalHunt{ | |
abstract void hunt(); | |
} | |
interface AnimalEat { | |
abstract void eat(); | |
} | |
class Tiger implements AnimalHunt, AnimalEat{ | |
@Override | |
public void hunt() { | |
} | |
@Override | |
public void eat() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment