欢迎光临散文网 会员登陆 & 注册

崔学社vue源码实战课

2022-11-01 15:50 作者:娜娜络络  | 我要投稿

public class Discount {    public double discount(double amount, DiscountStrategy discountStrategy) {        return discountStrategy.calculate(amount);//    public double discount(double amount, String customerType) {//        switch (customerType) {//            case "VIP"://                return amount * 0.8;//            case "VIPAndCoupon"://                return amount * 0.8 - 100;//            default://                return amount;//        }    }

崔学社vue源码实战课的评论 (共 条)

分享到微博请遵守国家法律