Created
July 11, 2022 03:53
-
-
Save vimiomori/686292afc350a59d279e5c5ef13c62d3 to your computer and use it in GitHub Desktop.
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
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