Exemplo n.º 1
0
 protected Product(int weight, string serialNumber, string company, Detail detail)
 {
     Weight = weight;
     SerialNumber = serialNumber;
     Company = company;
     AddDetail(detail);
 }
Exemplo n.º 2
0
 public void AddDetail(Detail detail)
 {
     _details.Add(detail);
 }