// ------------ CONSTRUCTOR ------------ public Skiing(string name, string city, SkiingState state, SkiType type) { Name = name; City = city; State = state; Type = type; }
public static int CalculateLengthAdult(int bodyLength, SkiType type) { switch (type) { case SkiType.Classic: return(Math.Min(bodyLength + 20, 207)); case SkiType.Freestyle: return(bodyLength + 15); default: return(bodyLength + 15); } }