• Post Reply Bookmark Topic Watch Topic
  • New Topic

default class accessibility in different package??  RSS feed

 
anu ravi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i access a class(which has members and data members)which is not public can be accessed in a different package?can i do that by any means?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37513
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anu,
You can't. The default access is "package private". This means you need to be in the same package.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!