Exemplo n.º 1
0
        static void Main4(string[] args)
        {
            Object aHuman  = new Vehicle();
            Object aHuman1 = new Asia();
            Asia   aAsian;


            aAsian = (Asia)aHuman;
        }
 /// <summary>
 /// Creates a new instance of GeographicSystems
 /// </summary>
 public GeographicSystems()
 {
     Africa        = new Africa();
     Antarctica    = new Antarctica();
     Asia          = new Asia();
     Australia     = new Australia();
     CountySystems = new CountySystems();
     Europe        = new Europe();
     NorthAmerica  = new NorthAmerica();
     Oceans        = new Oceans();
     SolarSystem   = new SolarSystem();
     SouthAmerica  = new SouthAmerica();
     SpheroidBased = new SpheroidBased();
     World         = new World();
 }
        static void Main(string[] args)
        {
            Continent[] continents = new Continent[2];

            continents[0] = new Africa();
            continents[1] = new Asia();

            foreach (Continent continent in continents)
            {
                Console.WriteLine(continent.GetType().Name + ":");
                foreach (Animal animal in continent.Animals)
                {
                    Console.WriteLine(" " + animal.GetType().Name);
                }
            }

            Console.ReadKey();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of Projected
 /// </summary>
 public ProjectedSystems()
 {
     Africa = new Africa();
     Asia   = new Asia();
     Europe = new Europe();
     GausKrugerBeijing1954   = new GaussKrugerBeijing1954();
     GausKrugerOther         = new GaussKrugerOther();
     GaussKrugerPulkovo1942  = new GaussKrugerPulkovo1942();
     KrugerZian1980          = new KrugerZian1980();
     MinnesotaCounties       = new Minnesota();
     Nad1983IntlFeet         = new Nad1983IntlFeet();
     NationalGrids           = new NationalGrids();
     NationalGridsAustralia  = new NationalGridsAustralia();
     NationalGridsCanada     = new NationalGridsCanada();
     NationalGridsIndia      = new NationalGridsIndia();
     NationalGridsJapan      = new NationalGridsJapan();
     NationalGridsNewZealand = new NationalGridsNewZealand();
     NationalGridsNorway     = new NationalGridsNorway();
     NationalGridsSweden     = new NationalGridsSweden();
     NorthAmerica            = new NorthAmerica();
     Polar                     = new Polar();
     SouthAmerica              = new SouthAmerica();
     SpheroidBased             = new SpheroidBased();
     StatePlaneNad1927         = new StatePlaneNad1927();
     StatePlaneNad1983         = new StatePlaneNad1983();
     StatePlaneNad1983Feet     = new StatePlaneNad1983Feet();
     StatePlaneNad1983Harn     = new StatePlaneNad1983Harn();
     StatePlaneNad1983HarnFeet = new StatePlaneNad1983HarnFeet();
     StatePlaneOther           = new StatePlaneOther();
     StateSystems              = new StateSystems();
     TransverseMercator        = new TransverseMercatorSystems();
     UtmNad1927                = new UtmNad1927();
     UtmNad1983                = new UtmNad1983();
     UtmOther                  = new UtmOther();
     UtmWgs1972                = new UtmWgs1972();
     UtmWgs1984                = new UtmWgs1984();
     Wisconsin                 = new Wisconsin();
     World                     = new World();
     WorldSpheroid             = new WorldSpheroid();
 }