This is a serious problem with the C# langauage.
Given the following two classes:
class First
{
First(string message)
{
System.Console.WriteLn(message);
}
}
class Second
{
}
The following will not compile:
Second = new Second(“Test”);
Now I know if I add the following to Second
Second(string message) : base(message)
{
}
This is not much code for a simple constructor, but what about classes with multiple constructors like exceptions? That makes them more difficult to define than necessary.