查看完整内容
首先我举一个代码的例子吧
public class Ball
{
public string Play(string ballType)
{
return “Play+"ballType"”;
}
}
public class FootBall: Ball
{
public override string Play(string ballType)
{
return “Play+ballType”;
}
}
public class BasketBall: Ball
{
public ...