Skip to content

Instantly share code, notes, and snippets.

@reevik
Created February 14, 2022 16:23
Show Gist options
  • Save reevik/771a0397547e83654af250f0b9deb234 to your computer and use it in GitHub Desktop.
Save reevik/771a0397547e83654af250f0b9deb234 to your computer and use it in GitHub Desktop.
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