G
Guest
What is the proper way of defining a class that inherits from a base class
that has no constructor with 0 arguments?
The following code generates compiler error CS1501, "No overload for method
'BaseClass' takes '0' arguments".
class BaseClass
{
public BaseClass(double x)
{
}
}
class TestClass : BaseClass
{
}
Inserting the constructor
public TestClass(double x)
{
}
into TestClass still generates the same error.
that has no constructor with 0 arguments?
The following code generates compiler error CS1501, "No overload for method
'BaseClass' takes '0' arguments".
class BaseClass
{
public BaseClass(double x)
{
}
}
class TestClass : BaseClass
{
}
Inserting the constructor
public TestClass(double x)
{
}
into TestClass still generates the same error.