mirror of
https://github.com/Dichgrem/Java.git
synced 2025-12-17 04:51:58 -05:00
update:demo4
This commit is contained in:
8
com/study/demo4/TestPay.java
Normal file
8
com/study/demo4/TestPay.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package com.study.demo4;
|
||||
|
||||
public class TestPay {
|
||||
public static void main(String[] args) {
|
||||
PaymentProcessor processor = PaymentFactory.getProcessor("alipay");
|
||||
processor.pay(666.0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user