static void Main(string[] args) { Bouldering bouldering = new Bouldering(9.3); Lead lead = new Lead(); Gym gym = new Gym(); Climbing[] climbings = { new Climbing(), new Roped(), new Bouldering(), new Lead(), new Climbing(9, 3, 1) }; climbings[0].PrintGradeStyle(); climbings[1].PrintGradeStyle(); climbings[2].PrintGradeStyle(); climbings[0].Indoor(); climbings[1].Indoor(); climbings[3].Indoor(); Console.WriteLine(bouldering.Height); bouldering.Height = 20; Console.WriteLine(bouldering.Height); Console.WriteLine(climbings[4].ClimbsInSession()); Console.ReadLine(); }
static void Main(string[] args) { Bouldering bouldering = new Bouldering(); Lead lead = new Lead(); Gym gym = new Gym(); Climbing[] climbings = { new Climbing(), new Roped(), new Bouldering(), new Lead() }; climbings[0].PrintGradeStyle(); climbings[1].PrintGradeStyle(); climbings[2].PrintGradeStyle(); climbings[0].Indoor(); climbings[1].Indoor(); climbings[3].Indoor(); Console.ReadLine(); }