1.eclipse Դ?码统通达信cci源码?ͳ??
eclipse Դ??ͳ??
public class F {
private int female =0;
private int male =0;
private int sum =0;
public void set_female(int i){
female = i;
}
public void set_male(int i){
male = i;
}
public void set_sum(){
sum = female + male;
}
public int get_female(){
return female;
}
public int get_male(){
return male;
}
public int get_sum(){
return sum;
}
public static void main(String[] args) {
F f = new F();
f.set_female(2);
f.set_male();
f.set_sum();
System.out.println(f.get_female());
System.out.println(f.get_male());
System.out.println(f.get_sum());
}
}
2024-11-26 17:41
2024-11-26 16:41
2024-11-26 15:54
2024-11-26 15:53
2024-11-26 15:25
2024-11-26 15:03