题目详情
单选题 请说出E类的输出结果. class A { double f(double x,double y) { return x+y; } static int g(int n) { return n*n; } } class B extends A { double f(double x,double y) { double m=super.f(x,y); return m+x*y; } static int g(int n) { int m=A.g(n); return m+n; } } public class E { public static void main(String args[]) { B b=new B(); System.out.println(b.f(10.0,8.0)); System.out.println(b.g(3)); } }
学科:JAVA程序设计语言(数)
时间:2023-11-19 07:20:40