class Peerson
{
String name;
String country="China";
public void show()
{
System.out.println("name:"+name+"country:"+country);
}
}
class StaticDome
{
public static void main(String[] args)
{
Person p=new Person();
p.name="张三";
p.show();
}
}
------解决方案--------------------
还有把Peerson改为Person