protected override decimal CalculateExtendedPrice()
{
decimal decDiscount;
decDiscount = Quantity * Price * decDISCOUNT_RATE;
ExtendedPrice = Quantity * Price - decDiscount;
decDiscountTotal += decDiscount;
return decDiscount;
}
重写
protected virtual decimal CalculateExtendedPrice()
{
decExtendedPrice = intQuantity * decPrice;
return decExtendedPrice;
}