Last active
July 13, 2022 03:28
-
-
Save vimiomori/5887632196d1bcc758c90ea5f5c60c37 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
class Pokeball { // low-level class | |
use() | |
} | |
class Trainer { // high-level class | |
usePokeball(pokeball: Pokeball) { // dependency on lower level class | |
pokeball.use() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment