S
Sampat
Hi,
I need have a base class that enforces the derived class to have a
constructor with a string parameter in it. If there is no constructor
of that type then it should ideally give me a compilation error. Is
there a way to do this.
public class Base
{
//some methods.
}
public class Derived
{
//need to have this constructor.
public Derived(string str){}
}
Thanks In Advance,
Sampat.
I need have a base class that enforces the derived class to have a
constructor with a string parameter in it. If there is no constructor
of that type then it should ideally give me a compilation error. Is
there a way to do this.
public class Base
{
//some methods.
}
public class Derived
{
//need to have this constructor.
public Derived(string str){}
}
Thanks In Advance,
Sampat.