⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 methodfailure4.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
字号:
import java.util.*;public class MethodFailure4 {  public static String call(A obj) {    return "A";  }  public static String call(I obj) {    return "I";  }  interface I {}  static class A {}  static class B extends A implements I {}  static class C extends B {}  public static A getA() {    return new A();  }  public static B getB() {    return new B();  }  public static C getC() {    return new C();  }  public static I getI() {    return new C();  }    // this method invocation is ambiguous    public static void main(String[] argv) {    call( getC() );  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -