• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Class modifier for Data

 
Bodenstab Oliver
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo,

can i use friendly/Package-Access as the access modifier for the class Data or must i use public?



I want, that the user can only access the buisiness layer and not the data layer of my application. The buisiness layer has a public class with public methods.

Thanks for response

Oliver
 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Oliver,

Yes, you can use package access. There is no explicit must that you can't, so it is allowed.

Frans.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic