Skip to content

Instantly share code, notes, and snippets.

@pankaj-k
Last active October 23, 2015 00:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pankaj-k/3372c6b28476f44ae41e to your computer and use it in GitHub Desktop.
public class Radio
{
public IBattery Battery { get; set; }
public Radio(IBattery battery)
{
Battery = battery;
}
public void Play()
{
Battery.Start();
//some code
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment