0 votes
in JAVA by
Difference between Adapter and Decorator pattern?

1 Answer

0 votes
by

Though the structure of Adapter and Decorator pattern is similar, the difference comes on the intent of each pattern. The adapter pattern is used to bridge the gap between two interfaces, but Decorator pattern is used to add new functionality into the class without the modifying existing code.

...