Java, Architecture, Clean Code, Solid, Programming.
notificationSender.sendNotification("Payment of $" + amount + " processed successfully"); } } public class Main { public static void main(String[] args) { NotificationSender notificationSender = new NotificationService(); PaymentService paymentService = new PaymentService(notificationSender);