我得到的“订单”不包含带有 0 个参数的构造函数。因此,基于该错误,我知道它在我的公共课程订单中。我在看什么?谢谢!
public class Order
{
public int QuantityOrdered { get; set; }
public double TotalPrice;
public const double PRICEEACH = 19.95;
virtual public double totalPrice
{
set
{
TotalPrice = QuantityOrdered * PRICEEACH;
}
}
}
public class ShippedOrder : Order
{
public const double SHIPPINGFEE = 4.00;
public override double totalPrice
{
set
{
totalPrice = base.TotalPrice + SHIPPINGFEE;
}
}
}