コード例 #1
0
ファイル: City.cs プロジェクト: Lavinia00166/ProjectTema
 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;
 }
コード例 #2
0
ファイル: City.cs プロジェクト: Lavinia00166/ProjectTema
        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());
        }
コード例 #3
0
ファイル: City.cs プロジェクト: Lavinia00166/ProjectTema
 public Streets(string name, Buildings building)
 {
     this.name     = name;
     this.building = building;
 }