following code segment.[ServiceContract]public interface ICustomerService{...}public class CustomerService : ICustomerService{...}The service is self-hosted in a console application. Older client applications access the service at http://contoso.com:8080/CustomerService/V1.Newer client applications access the service at http://contoso.com:8080/CustomerService/V2.You need to ensure that any client application can access the service at either address.Which code segment should you use?()
A.
B.
C.
D.
第1题:
第2题:
interface中的方法自动就是public的,而且是abstract的
第3题:
31、实现interface的方法前一定要用public修饰
第4题:
实现interface的方法前一定要用public修饰
第5题:
在用class定义一个类时,数据成员和成员函数的默认访问权限是public。
第6题:
下列说法中,不正确的是()
A.一个接口interface源程序经过编译后,得到的文件的扩展名一定是.class#B.一个java源程序编译通过后,得到的文件的扩展名一定是.class#C.一个java源程序可以有多个 class类定义,源文件的名字与public class的类名相同,且只能有一个public类,如果没有public类,源文件的名字必须与第一个类的类名相同,扩展名必须是.java#D.一个java源程序可以包含多个class类