|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Force constructor in derived classpublic 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 <lorenzo.sonc***@technoservice.com> wrote:
Show quote > Hi everybody, I have a class whit 3 costructor like this: You can't, I'm afraid.> > 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? -- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet If replying to the group, please do not mail me too |
|||||||||||||||||||||||