This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Give me Example for Friendly access Modifier.? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Give me Example for Friendly access Modifier.?" Watch "Give me Example for Friendly access Modifier.?" New topic
Author

Give me Example for Friendly access Modifier.?

suneel kanth
Greenhorn

Joined: Feb 06, 2003
Posts: 22
Hi all
Can any one give a example and explain about the Friendly access modifier? Thank you.


Any sufficiently advanced bug is indistinguishable from a feature.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2867
    
  11

Java doesn't have friend classes in the sense that C++ does, but you might be talking about what sometimes is called "package private" access.

Got it? For the record, I very rarely find use for package private access.
[ February 24, 2003: Message edited by: Greg Charles ]
suneel kanth
Greenhorn

Joined: Feb 06, 2003
Posts: 22
Thank you Greg Charles.Iam very thankfull to you regarding your help...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Give me Example for Friendly access Modifier.?