class Milk extends Goods {
double vipPrice;
Milk(double unitPrice, double account, double vipPrice) {//带参构造函数
super(unitPrice, account);
this.vipPrice = vipPrice;
}
Milk() {//不带参构造函数,默认值为0
super(0, 0);
}
void show() {
super.show();
System.out.println("会员价是" + vipPrice);
}
}