Created
February 14, 2022 16:23
-
-
Save reevik/771a0397547e83654af250f0b9deb234 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
Cat cat = catService.getCat(); // a real cat created which meows | |
catbar.enter(cat); | |
Cat lion = catService.getCat(); // this time the service gives you a lion instance back. | |
catbar.enter(lion); | |
catbar.singTogether(); // party begins: meoww moewww ROOARRR meow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment