标签:err main str col action string 调用 style override
public class Human { public interface MyAction { public void getPower(); } }
public class Test{ public static void main(String[] args) { new Human.MyAction() { @Override public void getPower() { } }
或 new Human.MyAction(){ @Override public void getPower() { } } } }
标签:err main str col action string 调用 style override
原文地址:https://www.cnblogs.com/znsongshu/p/9383948.html