Beispiel #1
0
        static void Main(string[] args)
        {
            GiantPlanet giantPlanet = new GiantPlanet("giant planet 1", 10000, 1000000, "Gas");

            Console.WriteLine(giantPlanet.ToString());
            TerrestrialPlanet terrestrialPlanet = new TerrestrialPlanet("terrestrial planet 1", 20000, 2000000, true);

            Console.WriteLine(terrestrialPlanet.ToString());
            WaitForAnyKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("***GIANT PLANET***");
            //Create an object for giant planet
            GiantPlanet giantPlanet = new GiantPlanet("Ice", "Jupiter", 20.20, 15.30);

            Console.WriteLine(giantPlanet.ToString());

            Console.WriteLine("\n\n***TERRESTRIAL PLANET***");
            //Create an object for terrestrial planet
            TerrestrialPlanet terrestrialPlanet = new TerrestrialPlanet(true, "Mars", 17.70, 16.20);

            Console.WriteLine(terrestrialPlanet.ToString());


            waitForAnyKey();
        }