隐藏
class Person
{
protected string id="bbbb";
public void print_info()
{
Console.WriteLine("aaa");
}
}
class Student : Person
{
public void print_info()
{
Console.WriteLine(id);
}
}
Student a = new Student();
a.print_info();
Person b =new Person();
b.print_info();
a的访问Student的
b的访问Person的
接口不能用override