Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Give me Example for Friendly access Modifier.?

 
suneel kanth
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Can any one give a example and explain about the Friendly access modifier? Thank you.
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Greg Charles.Iam very thankfull to you regarding your help...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic