邏輯iOS安全攻防
class DiscountStrategy {
? ?public int discount(int price, User user) {
? ? ? ?return price;
? ?}}class NoDiscountStrategy extends DiscountStrategy {
? ?@Override
? ?public int discount(int price, User user) {
? ? ? ?return price;
? ?}}class Discount95Strategy extends DiscountStrategy {
? ?@Override
標簽: