public Accesory(string manufacturer, string model, string description, decimal price, DateTime purchaseDate, string serialnumber, ServiceContract serviceContract) : base(manufacturer, model, description, price, purchaseDate) { Serialnumber = serialnumber; ServiceContract = serviceContract; }
public Computer(string manufacturer, string model, string description, decimal price, DateTime purchaseDate, string serialnumber, string assetTag, string uuid, List <string> macAddressList, ServiceContract serviceContract) : base(manufacturer, model, description, price, purchaseDate) { Serialnumber = serialnumber; Uuid = uuid; AssetTag = assetTag; MacAddress = macAddressList ?? new List <string>(); /* The ?? operator is called the null-coalescing operator https://msdn.microsoft.com/en-us/library/ms173224.aspx */ ServiceContract = serviceContract; }