static void Main(string[] args) { Fahrenheit f = new Fahrenheit(98.6F); DisplayTemp(f); Celsius c = new Celsius(0F); DisplayTemp(c); Console.ReadLine(); }
public static void DisplayTemp(Celsius Temp) { Console.Write("Conversion of {0} {1} to Fahrenheit = ", Temp.ToString(), Temp.Temp); Console.WriteLine("(Fahrenheit)Temp"); }