正在加载图片...
public Object invoke(object proxy, Method method, Object[ args) throws Throwable null ∥/签约 subcontract: ∥安排艺人演出 I obj= method. invoke(star, args) ∥1交税 pay Taxo retum obj 艺人 日田 ·艺人 public interface Artist public void show(String showType) 明星 日田r *明星 日田 public class Star implements Artist… pnvate String SIGN 明星]";public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object obj = null ; // 签约 subcontract(); // 安排艺人演出 obj = method.invoke(star, args); // 交税 payTax(); return obj; } } 艺人: /** * 艺人 * */ public interface Artist { public void show(String showType); } 明星: /** * 明星 * */ public class Star implements Artist { private String SIGN = " [明星] ";
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有