public class Goose {
  public void honk(){
    System.out.println("Honk");
  }
}

//鹅鹅鹅适配器
public class GooseAdapter implements Quackable {
  Goose goose;

  public GooseAdapter(Goose goose) {
    this.goose = goose;
  }
  public void quack() {
    goose.honk();
  }
}

@@ -254,16 +254,313 @@
 e.honk();%0A  %7D%0A%7D%0A
+%0A//chicken%0Apublic class Chicken %7B%0A  public void gugu()%7B%0A    System.out.println(%22gugu%22);%0A  %7D%0A%7D%0A%0A//%E9%B8%A1%E9%80%82%E9%85%8D%E5%99%A8%0Apublic class ChickenAdapter implements Quackable %7B%0A  Chicken chicken;%0A%0A  public ChickenAdapter(Chicken chicken) %7B%0A    this.chicken = chicken;%0A  %7D%0A  public void quack()%7B%0A    chicken.gugu();%0A  %7D%0A%7D%0A

add chickenAdapter