Module com.prog3.ipt
Interface PaymentMethodStrategy
- All Known Implementing Classes:
CreditCardPaymentMethod
,PayPalPaymentMethod
,PhoneNumberBillPaymentMethod
public interface PaymentMethodStrategy
PaymentMethodStrategy is an interface that represents a generic payment method, this is used to
implement Strategy Method design pattern
-
Method Summary
-
Method Details
-
pay
boolean pay(double paymentAmount) -
checkPaymentMethodData
boolean checkPaymentMethodData()
-