Re: Constructor in Interface
- From: "sloan" <sloan@xxxxxxxxx>
- Date: Thu, 17 Aug 2006 18:40:31 -0400
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.the
What I want know is if is possible define in the Interface the header of
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?
.
- References:
- Constructor in Interface
- From: Cristiano de Pádua Milagres Oliveira
- Re: Constructor in Interface
- From: Cristiano de Pádua Milagres Oliveira
- Constructor in Interface
- Prev by Date: Re: New to C# - DB question
- Next by Date: Re: New to C# - DB question
- Previous by thread: Re: Constructor in Interface
- Next by thread: Re: C#, SQL - multiple rows handling
- Index(es):
Relevant Pages
|