Question: The idea behind the adapter design pattern is to take two classes that are not Liskov - compatible due to their public interfaces and make
The idea behind the adapter design pattern is to take two classes that are not Liskovcompatible due to their public interfaces and make them so by writing an intermediate layer of software that translates between one set of method calls to another with a little extra work
Consider a system that delivers notifications to its users. The Notification interface looks like this:
public interface Notification void setRecipientUser recipient; void setSenderUser sender; void setMessageString message; String getMessage;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
