• Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in access modifier  RSS feed

 
jonny miller
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
A. public
B. abstract
C. protected
D. synchronized
E. default access
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jonny miller:
What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
A. public
B. abstract
C. protected
D. synchronized
E. default access


Hi Jonny,

Welcome to the Ranch. We are happy to have you here
One of the things which we don't do, is this
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Maneesh Godbole:
One of the things which we don't do . . .


What Maneesh means is, we would like you to write what you think the correct answer is, then we'll tell you whether you have got it right.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!