public Ship(string name, int pasCap, int conYear, ShippingCompany shipComp, TransporationPlace type) { Name = name; PassengerCapacity = pasCap; ConstructionYear = conYear; ShippingCompany = shipComp; Type = type; Ships.Add(this); }
public ShippingCompany(string name, TransporationPlace location) { Name = name; Location = location; ShippingCompanies.Add(this); }