Re: Interface stuff does not compile
- From: "Bruno van Dooren" <bruno_nos_pam_van_dooren@xxxxxxxxxxx>
- Date: Tue, 25 Apr 2006 22:31:35 +0200
Hi all!
I have this clases:
interface class i1
{
void m(void);
void m2(void);
};
interface class i2
{
//void m(void);
void m3(void);
};
ref class pepe:public i1,public i2
{
put 'public:' here and it compiles without a problem.
members are private by default in a ref class.
i think private is not what you want anyway?
otherwise you would not have used 'virtual' probably.
I think interface members have to be implemented as public.
otherwise they won't make much sense.
see here for references:
http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=365736
virtual void m(void){;}
virtual void m2(void){;}
virtual void m3(void){;}
};
--
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@xxxxxxxxxxx
Remove only "_nos_pam"
.
- Follow-Ups:
- Re: Interface stuff does not compile
- From: solved by design
- Re: Interface stuff does not compile
- References:
- Interface stuff does not compile
- From: solved by design
- Interface stuff does not compile
- Prev by Date: Interface stuff does not compile
- Next by Date: Re: Interface stuff does not compile
- Previous by thread: Interface stuff does not compile
- Next by thread: Re: Interface stuff does not compile
- Index(es):
Relevant Pages
|