public Running(string f, string l, double w, double h, double t) : base(f, l, w, h) { Time = t; Caloriesburned = Time * (25.0 / 6.0); Runpromt += new ExercisePrompt(RunningMessage); // starts event Runpromt(); }
} // Properties public PushUps(string f, string l, double w, double h, double a) : base(f, l, w, h) // push up constructor { Amount = a; Caloriesburned = Amount * (7.0 / 60.0); Pushpromt += new ExercisePrompt(PushupMessage); // starts event Pushpromt(); }
} // property public Biking(string f, string l, double w, double h, double t) : base(f, l, w, h) // Biking constructor { Time = t; Caloriesburned = Time * 10; Bikepromt += new ExercisePrompt(this.BikingMessage); // starts biking event Bikepromt(); }