Skip to content

Instantly share code, notes, and snippets.

@kevinpang
Created February 26, 2012 19:08
Show Gist options
  • Save kevinpang/1918351 to your computer and use it in GitHub Desktop.
Save kevinpang/1918351 to your computer and use it in GitHub Desktop.
You2
public class You {
private ICar myCar;
public You(ICar car)
{
myCar = car;
}
public void Drive(IList<Person> passengers, Location destination)
{
foreach (var passenger in passengers)
myCar.AddPassenger(passenger);
myCar.Drive(destination);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment