I have a class like this:
public class foo
{
public foo(string a, string b) { ... }
}
I want to do something like this:
public class bar : foo
{
public bar()
{
base = base("apple", "banana");
}
}
Visual Studio yells at me saying:
'foo' does not contain a constructor that takes 0 arguments
Is there a way to do this?
This is the way to do it:
Reference : Using Constructors (C# Programming Guide)