Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Schools   school   = new Schools("Emanuel", 250, 15);
            Buildings building = new Buildings("house");
            Parks     park     = new Parks("Jurassic", 150);
            Streets   street   = new Streets("St. Peter", building, park);
            Cars      car      = new Cars("SJ 01 BIG", 5);
            City      city     = new City("Oradea", car, street, park, building, school);

            Console.WriteLine(city.ToString());
        }
Ejemplo n.º 2
0
 public Streets(string name, Buildings building, Parks park)
 {
     this.name = name; this.building = building; this.park = park;
 }
Ejemplo n.º 3
0
 public City(String name, Cars car, Streets street, Parks park, Buildings building, Schools school)
 {
     this.name = name; this.street = street; this.school = school; this.park = park; this.building = building; this.car = car;
 }