User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 402,737 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,473 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting

public vs private

Join Date: Jun 2007
Posts: 7
Reputation: msi_333 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
msi_333's Avatar
msi_333 msi_333 is offline Offline
Newbie Poster

Re: public vs private

  #2  
Jun 16th, 2007
Yes u can ,
U have to understand the deferents between public and private .
If u made it private this means u can only access from inside the class .But using it as public means u can also access this variable from outside the class .This is a simple explanation .
Just walk beside me and be my friend Java problems,Applet Games
Reply With Quote  
All times are GMT -4. The time now is 7:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC