Skip to content

Instantly share code, notes, and snippets.

@Rillwz
Created August 24, 2021 21:10
Show Gist options
  • Select an option

  • Save Rillwz/f6feec730fbe929bf6e973ad1175431a to your computer and use it in GitHub Desktop.

Select an option

Save Rillwz/f6feec730fbe929bf6e973ad1175431a to your computer and use it in GitHub Desktop.
abstract class FlyingMonster {
String fly();
}
abstract class SwimingMonster {
String swim();
}
abstract class Monster extends Character {
String eatHuman() {
return 'Grr.. Delicious ..';
}
String move();
}
class MonsterKecoak extends Monster implements
FlyingMonster,
Swimingonster {
@override String fly() => 'Syuuuung';
@override Stirng swim() => 'brussshh';
@override String move() {
return 'jalan-jalan';
}
}
// Separated by comma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment