抽象属性:
抽象类可拥有抽象属性,这些属性在派生类中被实现。
public abstract class Person
{
public abstract string Name
{
get;set;
}
}
class student:Person
{
public override string Name
{
get {return name;}
set {name = value;}
}
}
抽象属性:
抽象类可拥有抽象属性,这些属性在派生类中被实现。
public abstract class Person
{
public abstract string Name
{
get;set;
}
}
class student:Person
{
public override string Name
{
get {return name;}
set {name = value;}
}
}