Re: Re:



Am Samstag, den 02.07.2005, 15:11 +0100 schrieb Tom Anderson:
> On Fri, 1 Jul 2005, Andreas Kostyrka wrote:
>
> > Am Freitag, den 01.07.2005, 08:25 -0700 schrieb George Sakkis:
> >
> >>> Again, how? Is there a way to force that an external user of my lib can
> >>> not use my internal data/methods/classes, unless he uses odd compiler
> >>> hacks?
> >>
> >> I never understood how mainstream OO languages expect the designer of a
> >> class to know in advance that an attribute should be hidden or
> >> unnecessary to its subclasses by being declared "private" instead of
> >> "protected".
> >
> > The problem is, that the classic private/protected/public visibility
> > tags try to solve multiple problems.
> >
> > Private: Ok, that's all that's really only for the implementation.
> > public: Well, that's all for my "customers". Hmm. What if I've got two
> > kinds of customers? Say a customer like in bank customer, and second
> > customer that plays the role of the bank employee? oops.
>
> C++ has 'friend' for that:
>
> http://www.cplusplus.com/doc/tutorial/tut4-3.html

Well, than you have to know who your friend is, don't you? And my friend
comes on "private" term, doesn't he? *g*

Andreas

Attachment:signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



Relevant Pages

  • Re: OT hidden browsers/hostil work environment?
    ... Friend is working at a desk with internet access. ... the day (at no loss to productivity BTW) ... Work 60 hours, no extra pay. ... When you can ask a customer about his grandson, BY NAME, you are well ...
    (rec.crafts.metalworking)
  • A word of advice for Microsoft
    ... I know that software piracy is an important issue to Microsoft. ... customer I would refrain from embarrassing his friend and my potential new ... customer by constantly reminding him that the copy he had purchased was not ... I would go after the original purchaser for payment and not him. ...
    (microsoft.public.windowsxp.basics)
  • Re: A word of advice for Microsoft
    ... to the extent of intentionally embarrassing someone who has purchased ... a copy of the software from a friend. ... embarrassing his friend and my potential new customer by constantly ... purchaser for payment and not him. ...
    (microsoft.public.windowsxp.basics)
  • Re: OT: I Found A Great Ale
    ... When I opened it up it had a 4 pack a' somethin' called Boddingtons ... Pub Ale in it. ... A great friend and customer in LI sent it to me. ...
    (alt.smokers.pipes)
  • Re: PLEASE HELP --------> how can I show addresses when....
    ... I sent an email to a customer who ... I would just scroll down and then ... I sent an email to a friend. ... Is there a way so that when someone replies to my emails that it shows ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)