Hi,
How can I write one abstract class that tells that is mandatory for the child class to have one constructor?
Something like this:
public abstract class FatherClass
{
public **<ChildConstructor>**(string val1, string val2)
{
}
// Someother code....
}
public class ChildClass1: FatherClass
{
public ChildClass1(string val1, string val2)
{
// DO Something.....
}
}
UPDATE 1:
If I can't inherit constructors. How can I prevent that someone will NOT FORGET to implement that specific child class constructor ????