Re: Constructor in Interface




I think you're saying

"Can I .. in the Interface .. force a concrete class to implement a certain
constuctor?"

The answer is no. I've found myself at times thinking "That would be nice".

I think the small work around is

interface ICheckMeOut
abstract void Initialize(string abc);


then your concrete has to implement that.. and you call that in your
concrete constructors.

not really clean, I know.




"Cristiano de Pádua Milagres Oliveira" <cristiano.oliveira@xxxxxxxxxxx>
wrote in message news:%23GyyHGkwGHA.4032@xxxxxxxxxxxxxxxxxxxxxxx
Maybe I hadn't explain correctly.
What I want know is if is possible define in the Interface the header of
the
Class Constructor that is inheriting..

"Cristiano de Pádua Milagres Oliveira" <cristiano.oliveira@xxxxxxxxxxx>
escreveu na mensagem news:OH3Og5jwGHA.4280@xxxxxxxxxxxxxxxxxxxxxxx
Constructor in a Interface is possible?
If yes, what's the C# syntax?





.



Relevant Pages

  • Re: Are Java and JavaScript really so malicious for Windows system
    ... >>> functionality (writing scripts with a user interface). ... >> Which is what I thought I was saying. ... compartmentalized applications like FireFox. ... * The French Security Incident Res: ...
    (microsoft.public.security)
  • Re: Phil Gordon addresses 2006 BARGE
    ... newgroup itself continues to exist as one huge unmoderated group (as many ... but there is an interface that implements the ... If he is saying what I believe he is saying, which is what I have been ... Writing software is what I do, and I don't think a reader like I've ...
    (rec.gambling.poker)
  • Re: Cohens paper on byte order
    ... That's what I've been saying all along: ... > # octet-sequence interface to AES as well. ... and the interesting ambiguities in existing standards it has thown up leads ... additional, equivalent octet based interface. ...
    (sci.crypt)
  • Re: Operator overloading in C
    ... Eric Sosman wrote: ... saying ... If the mere fact that Doug disagrees with your proposal is ... a library that we could use, but it had only a C interface, ...
    (comp.std.c)
  • Re: eMac, 9.2 and WiFi ?
    ... The user interface was quite clearly the Macintosh interface, ... Ah but are we saying that everything pre X was rubbish, ... What do you think we were doing while Windows users hadn't even imagined ... Mac OS 9 is about seven years old. ...
    (uk.comp.sys.mac)