class A { double f(float x,float y) { return x+y; } public int g(int x,int y) { return x+y
class A { double f(float x,float y) { return x+y; } public int g(int x,int y) { return x+y; } } Class B extends A { double f(float x,float y) { return x*y; } } public class test { public static void main(String args[]) { A b=new B(); double result=b.f(5,6); System.out.println(result); int m=b.g(3,5); System.out.println(m); } } 程序的输出结果是: