An example of wrapping is shown in Example 7-1.
Example 7-1: Implementing the Adapter Pattern
TOP
class Circle extends Shape { ... private XXCircle myXXCircle; ... public Circle () { myXXCircle= new XXCircle(); } void public display() { myXXCircle.displayIt(); } ... }