static void MyLesson14Examples() { Lesson14Static.CelsiusToFahrenheit("34.5"); Lesson14Static.FahrenheitToCelsius("64"); Lesson14Derived myLesson14 = new Lesson14Derived(8); myLesson14.ShowResultFeet(); myLesson14.ShowResultMiles(); }
static void MyLesson14Examples() { Lesson14Static.CelsiusToFahrenheit("34.5"); Console.WriteLine(Lesson14Static.FahrenheitToCelsius("64")); Lesson14Derived myLesson14 = new Lesson14Derived(8); myLesson14.ShowResultFeet(); myLesson14.ShowResultMiles(); Lesson14Base myBase = new Lesson14Derived(10); myBase.ShowResultFeet(); }