Exemplo n.º 1
0
 public City(String name, Streets street, Buildings building, Schools school, Parks park)
 {
     this.name     = name;
     this.street   = street;
     this.building = building;
     this.school   = school;
     this.park     = park;
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Schools   school   = new Schools("Troy High School", 25, 500);
            Buildings building = new Buildings("Firm", 12);
            Streets   street   = new Streets("Lancaster Street", building);
            Parks     park     = new Parks("Central Park", 350);
            City      city     = new City("New York", street, building, school, park);

            Console.WriteLine(city.ToString());
        }
Exemplo n.º 3
0
 public Streets(string name, Buildings building)
 {
     this.name     = name;
     this.building = building;
 }