package lecc;
class student
{
private int age=13;
public int getAge()
{
return age;
public void setAge(int a)
{
age=a;
}
void p()
{
System.out.println("-->" + age);
}
}
public class singto
{
public static void main(String[] args)
{
student k1 = new student();
int ret = k1.getAge();
System.out.println(ret);
}
}
这个为什么不能传出age啊?