What are different types of access modifiers?

Author Topic: What are different types of access modifiers?  (Read 780 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 153
  • Karma: 0
    • No Addiction
What are different types of access modifiers?
« on: 01-25-2016, 02:07:24 »
public: Any thing declared as public can be accessed from anywhere. private: Any thing declared as private can’t be seen outside of its class. protected: Any thing declared as protected can be accessed by classes in the same package and subclasses in the other packages. default modifier : Can be accessed only to classes in the same package.


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1279 Views
Last post 01-19-2012, 22:54:39
by cpaoutsourcing
1 Replies
2234 Views
Last post 07-28-2014, 02:03:44
by Siservices
3 Replies
1517 Views
Last post 02-28-2015, 02:42:43
by jannatul18
0 Replies
668 Views
Last post 03-04-2015, 13:45:27
by jackmanson
1 Replies
783 Views
Last post 07-30-2015, 04:42:46
by James10