package com.study.design.adapter.c2;

/**
 * @author chenyao
 * @date 2017/11/1 15:05
 */
public class PrintBanner extends Print {
    private Banner banner;

    public PrintBanner(String str) {
        this.banner = new Banner(str);
    }
    @Override
    void printWeak() {
        banner.showWithParen();
    }

    @Override
    void printStrong() {
        banner.showWithAster();
    }
}

@@ -35,16 +35,33 @@
 2;%0A%0A/**%0A
+ * %E9%80%82%E9%85%8D%E5%99%A8%EF%BC%8C%E9%80%82%E9%85%8DPrint%E6%8E%A5%E5%8F%A3%0A
  * @auth

update adapter pattern