题海让大学四年没有难题
白天模式登陆

题目详情

单选题 将下列(A,B,C,D)哪个代码替换下列程序中的【代码】不会导致编译错误.interface Com { int M = 200; int f();}class ImpCom implements Com { 【代码】}

A. public int f(){return 100+M;}

B. int f(){return 100;}

C. public double f(){return 2.6;}

D. public abstract int f()

面向对象语言(JAVA)课程封面

学科:面向对象语言(JAVA)

时间:2023-05-21 06:15:43

Copyright © 2022 津ICP备2021001502号