【发布时间】:2017-11-07 06:14:22
【问题描述】:
1.
interface A {
void display();
}
class B implements A {
//not use here private,protected,default......
**public** void display(){
System.out.println("i m interface method");
}
public static void main(String args[]){
A a1 = new B();
a1.display();
}
}
我很困惑,请帮助我....对不起我的英语。谢谢你
【问题讨论】:
-
如果你format your code first就太好了