//值参数传递
class student02{
private int age;
private int strong;
public void addition(int age,int strong){
System.out.println(“年龄为”+age);
System.out.println(“体重为”+strong);
age=12;
strong=13;
}
}
public class test10 {
public static void main(String[] args){
student02 stu1=new student02();
int age=24;
int strong=26;
stu1.addition(age,strong);
System.out.println(age);
System.out.println(strong);
}
}