Open cxlove opened 8 years ago
type 1, object adapter using java
We can build a adapter implements the target interface and use the object composition to wrap the adaptee. This approach has the added advantage that we can use an adapter with any subclass of the adaptee.
RT