1.base关键字用于从派生类中访问基类成员
public class Person
{
protect string Name;
protect string Age;
private string Sex;
public void play()
{
}
}
class ZEmploy:Person
{
public string ID=1234646"";
public void GetInfoEmploy()
{
base:play();
console.Writeline();
}
}
class TEstClass
{
public void main()
{
Employ e=new Employ();
e.GetInfoEmploy();
}
}