Skip to content

Instantly share code, notes, and snippets.

@AnthonyDGreen
Created August 25, 2017 20:16
Show Gist options
  • Save AnthonyDGreen/9ff636bcedff3f2217b2702efe4d9b2a to your computer and use it in GitHub Desktop.
Save AnthonyDGreen/9ff636bcedff3f2217b2702efe4d9b2a to your computer and use it in GitHub Desktop.
Public Class Child
Private ReadOnly _drinkService As IDrinkService
Public Sub New(drinkService As IDrinkService)
_drinkService = drinkService
End Sub
Public Sub Drink()
_drinkService.Drink()
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment