Force constructor in derived class

  • Thread starter Thread starter Lorenzo Soncini
  • Start date Start date
L

Lorenzo Soncini

Hi everybody, I have a class whit 3 costructor like this:

public class MyClass {
public MyClass ()
{
}
public MyClass (int A)
{
}
public MyClass (int A,string B)
{
}
}

How I can force any derived class from MyClass implements the same
costructor?

Thanks
Lorenzo Soncini
 
Lorenzo Soncini said:
Hi everybody, I have a class whit 3 costructor like this:

public class MyClass {
public MyClass ()
{
}
public MyClass (int A)
{
}
public MyClass (int A,string B)
{
}
}

How I can force any derived class from MyClass implements the same
costructor?

You can't, I'm afraid.
 
Back
Top