class Student
{
static String name;
static String country = "国";
public Student(String name,String country)
{
this.name = name;
this.country = country;
}
}
class hehei
{
public static void main(String[] args)
{
Student c2 = new Student("娃一","韩国");
Student c1 = new Student("娃二","美国");
// System.out.println("国籍:"+ Student.country);
System.out.println("名字:"+ c1.name+ c1.country);
System.out.println("名字:"+ c2.name+ c2.country);
}
}
问题一、请问怎样才能使,娃一韩国,娃二美国都出现哪。
问题二、为什么娃二会把娃一覆盖哪。