Re: Default access for data is public...?




"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.


.



Relevant Pages

  • Re: Importing IGES NURBS Patch (entity 128)
    ... I have also discovered that placing two control points on top of each other (which is OK in many other apps) is apparently not OK in the SWX IGES importer. ... BTW, I'm able to import this file into SW using the free *.3DM add-in. ...
    (comp.cad.solidworks)
  • Re: Web user controls
    ... You could easily create a 3 table layout. ... the header by placing markup it it's own control and display it or hide ... You could use the literal control, ... Just write the HTML code you ...
    (microsoft.public.dotnet.framework.aspnet)
  • c#, Web Browser, Microsoft Word
    ... have experimented by loading the word document into word and then from there ... placing that document inside a picturebox so as to make it look embedded, ... I am hoping I can find some resolve with using the web browser control. ... MCP, MCSA, A+, N+, MCP ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Trying to figure out what Event fires for a textbox
    ... I'm not sure of the correct syntax to call the AfterUpdate event of ... > the control from pop-up calendar/button. ... I tried placing ...
    (microsoft.public.access.formscoding)
  • Re: USE OF QUERY BUILT IN SQL IN A CALCULATED CONTROL FIELD .
    ... are you placing the SQL in the Control ... Source of a textbox? ...
    (microsoft.public.access.forms)