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()); }
public Streets(string name, Buildings building, Parks park) { this.name = name; this.building = building; this.park = park; }
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; }