Re: Default access for data is public...?
- From: "Bruce Roberts" <ber@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 4 Jul 2005 09:57:27 -0400
"Shannon Lloyd" <sjlloydNO@xxxxxxxxxxxxxx> wrote in message
news:42c8d4db@xxxxxxxxxxxxxxxxxxxxxxxxx
> public? I'm used to the idea of using data encapsulation to expose my
> data in specific, controlled ways, rather than just placing it in plain
> view for all and sundry to see and modify. I have a strong urge to move
> the component into the private section of the class declaration and
> write methods to expose the data of the component, but I don't want to
> mess with the IDE's choices unless I really have to (particularly when
> I'm still learning). So, can someone explain to me why this component
> needs to be public? I'm assuming that I'm just missing something obvious.
This case deals with visual components. It would be difficult to design
windows if one lost access to a control immediately upon placing it in a
grouping control.
.
- References:
- Default access for data is public...?
- From: Shannon Lloyd
- Default access for data is public...?
- Prev by Date: Re: Please Help on Help
- Next by Date: Re: Is delphi a good introduction to programming?
- Previous by thread: Re: Default access for data is public...?
- Next by thread: Re: Default access for data is public...?
- Index(es):
Relevant Pages
|