把下面的代码保存到Main.java文件中,执行结果猜着了吗?

class Parent {

    private static String name;
 
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}


class Children extends Parent {
 
}


public class Main {
    public static void main(String[] args) {
         Children c = new Children();
         Parent p = new Parent();
         c.setName("zhangsan");
         p.setName("wanger");
         System.out.println(c.getName()+":"+p.getName());
    }
}


原文:https://blog.csdn.net/dontletmedown/article/details/51112593