Visual Explanation of Access Specifiers in OOPs

Access specifiers  (or access modifiers) are keywords in object-oriented languages that set the accessibility of classes, methods, and other members. Access modifiers are a specific part of programming language syntax used to facilitate the encapsulation of components.

There are 5 access modifiers.

  1. Private: Accessible only within the class.
  2. Protected: Accessible within the class and its derived classes.
  3. Internal: Accessible anywhere within the current project or assembly.
  4. Protected internal: Accessible with current project and derived classes.
  5. Public: Accessible everywhere.
Access specifier
Access specifier

 

32 thoughts on “Visual Explanation of Access Specifiers in OOPs”

  1. It’s actually a great and useful piece of information. I’m glad that you shared this useful info with us.
    Please keep us informed like this. Thank you for sharing.

  2. Howdy! I could have sworn I’ve been to this website before but after looking
    at a few of the articles I realized it’s new to me.
    Nonetheless, I’m definitely pleased I found it and I’ll be book-marking it and checking back regularly!

  3. That is a great tip especially to those new to the blogosphere.

    Simple but very accurate info… Appreciate your sharing this
    one. A must read post!

  4. I just want to mention I am just new to blogs and actually savored your blog. Likely I’m going to bookmark your blog . You certainly come with very good stories. Appreciate it for sharing your web-site.

  5. Usually I do not learn article on blogs, but
    I would like to say that this write-up very pressured me to try and do it!
    Your writing taste has been surprised me. Thank you, very great article.

  6. This article was… how do you say it? Relevant!!
    Finally I’ve found something that helped me.
    Thanks a lot!

  7. I always used to read post in news papers but now as I am a user of net thus
    from now I am using net for articles or reviews,
    thanks to web.

  8. I am in fact thankful to the owner of this web site who has shared this fantastic piece of writing at here.

  9. I simply want to tell you that I am newbie to blogging and site-building and seriously enjoyed your website. Likely I’m planning to bookmark your site . You amazingly have superb articles. Thank you for sharing with us your blog.

  10. If some one wishes to be updated with hottest technologies then he must be pay a visit this web site and be up to date all the time.

  11. I simply want to tell you that I’m very new to weblog and definitely enjoyed this web page. Almost certainly I’m going to bookmark your blog . You absolutely have beneficial posts. Appreciate it for sharing your website page.

  12. I simply want to say I’m beginner to blogging and site-building and actually savored you’re blog site. Likely I’m going to bookmark your site . You absolutely come with perfect well written articles. Thank you for sharing with us your website page.

  13. Very couple of internet websites that transpire to become detailed beneath, from our point of view are undoubtedly well worth checking out.

  14. Hello to every body, it’s my first pay a quick visit of this
    website; this website consists of awesome and actually
    good data in favor of readers.

  15. If you would like to grow your knowledge just keep visiting this website and be updated with the hottest information posted here.

  16. Thanks a bunch for sharing this with all folks you
    actually understand what you’re talking approximately!

    Bookmarked. Kindly additionally visit my web site =).

    We could have a link trade arrangement between us

  17. Wow, awesome blog layout! How long have you been blogging for?

    you make blogging look easy. The overall look of your website is magnificent, let alone
    the content!

Leave a Reply

Your email address will not be published. Required fields are marked *