/** <summary> * This is the "main" method. * </summary> * * @method Main * @param {string[]} args * @returns {void} */ public static void Main(string[] args) { GiantPlanet giantPlanet = new GiantPlanet("Giant", 3000, 5000, "Gas"); Console.WriteLine(giantPlanet.ToString()); TerrestrialPlanet terrestrialPlanet = new TerrestrialPlanet("Terrestrial", 1000, 4000, true); Console.WriteLine(terrestrialPlanet.ToString()); waitForAnyKey(); }
static void Main(string[] args) { Console.WriteLine(); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("***************************************"); GiantPlanet giantPlanet = new GiantPlanet("The Death Star", 3000000000, 5000000000, "Dark Matter"); Console.WriteLine(giantPlanet.ToString()); Console.WriteLine("***************************************"); Console.WriteLine(); Console.WriteLine("---------------------------------------"); TerrestrialPlanet terrestrialPlanet = new TerrestrialPlanet("Pluto", 1000, 4000, true); Console.WriteLine(terrestrialPlanet.ToString()); Console.WriteLine("---------------------------------------"); Console.WriteLine(); waitForAnyKey(); }