What does it mean to say that decorators are more transparent than adapters?
design-patterns
Solution
A decorator takes an object of a given type A, and wraps it into an object of the same type A. The client can use the decorated object as if it used the actual object, since they have the same type.
An adapter takes an object of a given type A, and wraps it into an object of another type B. A client which used the original type A must then be adapted to use the other type B.
That said, if we use the adapter pattern, it's precisely because a client needs an object of a type B, and we only have an object of type A. So we wrap it into an adapter to make it an object of type B.
The two patterns use the same principle (wrapping), but for diferent purposes. A decorator to change the behavior of the original object. An adapter to change its type.
Problem
I have read that decorators are more transparent to the client than adapters and it is this transparency that makes nested decoration possible. What is actually meant by transparency in this context? P.S: I know both these design patterns. So you can base your answer on that premise.