源程序: class Person{ String name ; int age ; public void tell(){ System.out.println("姓名:" + name + ",年龄:" + age) ; } 运行结果: