Re: Interface stuff does not compile



Ouch!

What a mistake!

I forgot put it in public! Like a beginner!



--
Si de pronto se descompusieran todos los televisores del mundo, no habría
escalas para medir los maremotos de aburrimiento.
-- Manuel Campo Vidal. (1951-) Periodista español.

"Bruno van Dooren" <bruno_nos_pam_van_dooren@xxxxxxxxxxx> wrote in message
news:eXG6AdKaGHA.4116@xxxxxxxxxxxxxxxxxxxxxxx
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"



.



Relevant Pages


Loading