为什么静态方法不能在Java中抽象问题是在Java中,为什么我不能定义一个抽象的静态方法?例如abstract class foo {
abstract void bar( ); // <-- this is ok
abstract static void bar2(); //<-- this isn't why?}
添加回答
举报
0/150
提交
取消