Skip to content

Instantly share code, notes, and snippets.

@vimiomori
Created July 11, 2022 03:53
Show Gist options
  • Save vimiomori/686292afc350a59d279e5c5ef13c62d3 to your computer and use it in GitHub Desktop.
Save vimiomori/686292afc350a59d279e5c5ef13c62d3 to your computer and use it in GitHub Desktop.
interface Trainer {
choosePokemon(p: Pokemon)
switchPokemon(p: Pokemon)
}
class AceTrainer implements Trainer {
choosePokemon(p) {}
switchPokemon(p) {}
}
class NormalTrainer implements Trainer {
choosePokemon(p) {}
switchPokemon(p) {} // Not Implemented
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment