public Facility(attractionType type, string imageName, string name, string description, Coordinates location, Time open, Time close) { this.ImageName = imageName; this.Name = name; this.Description = description; this.Location = location; this.Open = open; this.Close = close; this.attractiontype = type; }
// Lav CTOR'en om til CTOR chaining public Animal(string imageName, attractionType type, string name, string description, Coordinates location, string latinName, params FeedingTime[] feedingTimes) { this.ImageName = imageName; this.Name = name; this.Description = description; this.Location = location; this.LatinName = latinName; this.attractiontype = type; if (feedingTimes != null) { foreach (FeedingTime t in feedingTimes) { _feedingTimes.Add(t); } } }
public Facility(attractionType type, string imageName, string name, string description, Coordinates location) : this(type, imageName, name, description, location, null, null) { }
public Animal(string imageName, attractionType type, string name, string description, Coordinates location, string latinName) : this(imageName, type, name, description, location, latinName, null) { }