示例#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 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;
 }