Created
September 11, 2014 14:26
-
-
Save bondsbw/1b76e05bbd5d63fa1298 to your computer and use it in GitHub Desktop.
Usage of ICar interface
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
var car = new Car(); | |
car.UnlockDoor(Door.Driver) | |
.OpenDoor(Door.Driver) | |
.SitDown(Seat.Driver) | |
.FastenSeatBelt(Seat.Driver) | |
.PutIntoGear(Gear.Reverse); | |
.Drive(new Acceleration(2, "MPH")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment