Proxy代理代码
package com.bjsunyuhuan.test001;
public class Proxy implements NetWork{ private NetWork network; public Proxy(NetWork network){ this.network=network; } public void check(){ System.out.println("检查用户是否合法"); } public void borowse() { this.check(); this.network.borowse(); }
}
总结很重要哦 方法得当,坚持会有奇迹哦