下面代码是否有错,如有错,请指出并阐述错误原因。class ...
发布于 2022-03-03 11:14:29
下面代码是否有错,如有错,请指出并阐述错误原因。
class testB{
string aa = “I’m testB”
}
interface testA{
string aa = “I’m testA”
}
class testC extends testB implemets testA{
public void cc(){
System.out.println(aa)
}
public static void main(String[] args){
new testC().cc()
}
}
class testB{
string aa = “I’m testB”
}
interface testA{
string aa = “I’m testA”
}
class testC extends testB implemets testA{
public void cc(){
System.out.println(aa)
}
public static void main(String[] args){
new testC().cc()
}
}
关注者
0
被浏览
46