Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }