public static Automobile1 Race(Automobile1 a, Automobile1 b, double distance) { var aSpeed = a.CurrentSpeed / distance; var bSpeed = b.CurrentSpeed / distance; return(aSpeed < bSpeed ? b : a); }
static void Main(string[] args) { var auto = new Automobile1(); auto.Drive(); auto.Drive(40.0); LogNames("Cody", "Winton"); }