Skip to content

Instantly share code, notes, and snippets.

@xProgrammer-007
Created August 18, 2021 08:49
Show Gist options
  • Save xProgrammer-007/7593398e52e1e2fc0c3ecfcae1ff17d6 to your computer and use it in GitHub Desktop.
Save xProgrammer-007/7593398e52e1e2fc0c3ecfcae1ff17d6 to your computer and use it in GitHub Desktop.
Simple extends using interface
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