标签:public bsp str nbsp 类的属性 string style 访问 name
public class Person { private String name; private int age; }
public class Student extends Person { public void sayHi() { super.name = "";//报错,父类的属性是私有的,不允许子类访问 } }
标签:public bsp str nbsp 类的属性 string style 访问 name
原文地址:http://www.cnblogs.com/BaiLaowu/p/7148312.html