Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Tutorials > Java Tutorials

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

Java Tutorials Tutorials and Code for Java

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-2006, 09:57 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 3,211
Last Blog:
Passwords
Credits: 842
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John
Default Java:Tutorial - Access Modifiers

Access control modifiers express a programming entities ability to be recognized and available to other programming entities. Inside a program there are something things that we want to make public, meaning other parts of the program have access to them, and there are something things we do not want to make public in which we would use the private access modifier. There is also a protected access modifier, which is less common than public and private. Entities that are giving the protected access modifier may be accessed by other classes in the same package or from any subclasses of the class in which they are declared. Access modifiers can be used for variables and methods.

For example:
Code:
public int x;
private int y;
public class myClass(){
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access moonrise Visual Basic Programming 3 01-24-2008 07:19 AM
Access server file from client ahpooh Visual Basic Programming 1 09-06-2007 01:36 PM
[PHP] Faking Shell Access Through PHP pranky PHP Tutorials 2 03-29-2007 06:28 AM
Access server file from Client ahpooh Visual Basic Programming 2 02-14-2007 06:51 PM
HXTT Access 2.0.003 Kernel Software Development Tools 0 09-28-2006 07:12 AM


All times are GMT -5. The time now is 05:00 AM.

Contest Stats

Xav ........ 1097.16
MeTh0Dz|Reb0rn ........ 986.37
morefood2001 ........ 850.04
John ........ 841.93
WingedPanther ........ 684.54
marwex89 ........ 638.26
Brandon W ........ 493.36
chili5 ........ 292.12
Steve.L ........ 188.37
orjan ........ 187.41

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 79%

Ads