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