public Product(int code, string name, double price) { Code = code; Name = name; Price = new DollarAmount(price); }
public override string ToString() { DollarAmount subtotal = new DollarAmount(OrderProduct.Price.Amt * OrderAmt); return($"{OrderAmt} of Product {OrderProduct.Code} ({OrderProduct.Name}) for {subtotal}"); }