public Product(int ID, string name, double weight, double volume, double price, double timeForPreparation, DeliveryType type) { this.ID = ID; Name = name; Weight = weight; Volume = volume; Price = price; TimeForPreparation = timeForPreparation; Type = type; }
public bool Equals(DeliveryType deltype) { return((deltype.ID == this.ID) && (deltype.Type == this.Type)); }