Beispiel #1
0
        public override bool Equals(object obj)
        {
            Goods g = obj as Goods;

            return(g != null && g.Name == Name && g.Price == Price);
        }
Beispiel #2
0
 public OrderItem(String name, double price, int number)
 {
     goods  = new Goods(name, price);
     Number = number;
 }