Skip to content

Instantly share code, notes, and snippets.

View fabriceyopa's full-sized avatar
🔐
Focusing

Fabrice Yopa fabriceyopa

🔐
Focusing
View GitHub Profile
@fabriceyopa
fabriceyopa / FlutterwavePaymentProcessor .java
Created January 5, 2025 15:48
Strategy & Adapter Design Pattern
public class FlutterwavePaymentProcessor implements PaymentProcessor {
@Override
public void sendMoney(double amount, String destination) {
System.out.println("Sending " + amount + " to " + destination + " via Flutterwave.");
}
@Override
public void receiveMoney(double amount, String source) {
System.out.println("Receiving " + amount + " from " + source + " via Flutterwave.");
}