What are different types of access modifiers?

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
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
1788 Views
Last post 01-19-2012, 22:54:39
by cpaoutsourcing
1 Replies
2634 Views
Last post 07-28-2014, 02:03:44
by Siservices
3 Replies
2056 Views
Last post 02-28-2015, 02:42:43
by jannatul18
0 Replies
910 Views
Last post 03-04-2015, 13:45:27
by jackmanson
1 Replies
1398 Views
Last post 03-17-2017, 22:18:31
by Sap Solution