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();
  }
}

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();
  }
}

//chicken
public class Chicken {
  public void gugu(){
    System.out.println("gugu");
  }
}

//鸡适配器
public class ChickenAdapter implements Quackable {
  Chicken chicken;

  public ChickenAdapter(Chicken chicken) {
    this.chicken = chicken;
  }
  public void quack(){
    chicken.gugu();
  }
}

add chickenAdapter