【单选题】如果有以下程序片段: interface Some { void doSome(); } abstract class AbstractSome implements Some { public abstract void doSome(); public void doService() { System.out.println("作一些服务"); } } public class Main {...
【单选题】如果有以下程序片段: interface Some { protected void doSome(); } class SomeImpl implements Some { public void doSome() { System.out.println("作一些事"); } } public class Main { public static void main(String[] args...
【单选题】如果有以下程序片段: interface Some { void doSome(); } public class Main { public static void main(String[] args) { Some s = new Some() { public void doSome() { System.out.println("作一些事"); } public void doServi...
【单选题】如果有以下程序片段: interface Some { void doSome(); } class SomeImpl implements Some { public void doSome() { System.out.println("作一些事"); } } public class Main { public static void main(String[] args) { Some s...