【单选题】给定如下Java代码,可以填入横线处的语句是()。 public intece Service {} public class ChinaMobile implements Service{} public class ChinaUnicom implements Service{} public abstract class Vehicle{} public class Car exten...
【单选题】给定如下Java代码,可以填入横线处的语句是( )。 public intece Distance { int START=0; int END=100; public void setDistance(int end); } public class Test { public static void main(String[] args) { } }
A.
Distance dis= new Distance ();
B.
new Distance() { public void setDistance(int end) { int i=end; i=Distance.END; } };
C.
new Distance() { public void setDistance(Distance.END) { int i=0; i=Distance.END; } } ;