I am trying to do a design for notification part in the system I have 2 parts inApp notification and email notification so I used strategy pattern where I have interface NotificationSender with one single method send
NotificationSender{ public void send(A,B,C); } then I have 2 implmentations
InAppNotificationSender{ public void send(A,B,C){} } EmailNotificationSender{ public void send(A,B,C){} } later on, I had to increase parameters in the InAppNotificationSender so send should have D,E params as well which may change the design I thought of doing one single parameter for both methods using builder pattern something like
NotificationSender{ public void send(NotificationTemplateBuilder); } What would be the good design to do such case