标签:java inter interface java匿名内部类 匿名内部类 pre rri span new
public interface FlyInterface { public void run(); }
FlyInterface f = new FlyInterface() { @Override public void run() { System.out.println("你大爷再次"); } }; f.run(); }
标签:java inter interface java匿名内部类 匿名内部类 pre rri span new
原文地址:https://www.cnblogs.com/liushisaonian/p/11277992.html