我有这样的课:
public class foo
{
public foo(string a, string b) { ... }
}
我想做这样的事情:
public class bar : foo
{
public bar()
{
base = base("apple", "banana");
}
}
Visual Studio 对我大喊:
'foo' does not contain a constructor that takes 0 arguments
有没有办法做到这一点?