class A{ float f (float x,float y){ return x+y; } double f (double,double y){ return x*y; } } public class Example{ public static void main(String args[ ]) { A a=new A(); System.out.println(“**”+a.f(1.0,2.0)); } } 程序运行结果是:
发布时间:2024-04-10 11:22:35