欢迎使用题易搜网站

题易搜

在线题库

[单选]  public class XXK2 { private int a,b; public XXK2(int aa, int bb) {a=aa; b=bb;} public int f1(int x) { if(x>10) return a+b+3*x; else return a*b*x; } public static void main(String[] args) { XXK2 x=new XXK2(3,4); int y=x.f1(8); System.out.println("y="+y); } }

发布时间:2022-09-12 0次
您需要登录才可以下载或查看,没有账号?会员注册