下列语句哪些会出现编译错误( )
interface MyIntf{
void pirnt1();
}
interface MyIntf2{
void pirnt1();
}
public class Test implements MyIntf,MyIntf2{
public void pirnt1() {}
public static void main(String[] args) {}
}
interface MyIntf{
int pirnt1();
}
interface MyIntf2{
void pirnt1();
}
public class Test implements MyIntf,MyIntf2{
public void pirnt1() { }
public static void main(String[] args) { }
}
interface MyIntf{
void pirnt1();
}
public class Test{
public static void main(String[] args) {
MyIntf Intf = new MyIntf();
}
}
interface MyIntf{
int pirnt1();
}
interface MyIntf2{
void pirnt1();
}
public class Test implements MyIntf,MyIntf2{
public int pirnt1() {}
public static void main(String[] args) {}
}