mirror of
https://github.com/Dichgrem/Java.git
synced 2025-12-16 12:41:58 -05:00
10 lines
207 B
Java
10 lines
207 B
Java
package com.study.demo4;
|
|
|
|
class CreditCardPayment implements PaymentProcessor {
|
|
@Override
|
|
public boolean pay(double amount) {
|
|
System.out.println("银行卡支付: " + amount);
|
|
return true;
|
|
}
|
|
}
|