前一文章请参见
http://space.itpub.net/9240380/viewspace-718062
本节如下:
public abstract class Vehicle
{
//属性的虚属性
private string _name;
public virtual string Name
{
get
{
return _name;
}
}
//属性的抽象属性
//抽象属性的get及set 访问器也是空的,这就需要子类对其GET 及SET进行重写实现了
private string _sex;
public abstract string Sex
{
get;
set;
}
}