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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top