Skip to content

Desi banjara

  • Family quotes – To understand your parents love Family Quotes
  • Microsoft AZ-900 Certification Exam Practice Questions – 8 Microsoft AZ-900 Certification Exam
  • “The greater the difficulty, the more glory in surmounting it. Skillful pilots gain their reputation from storms and tempests.”– Epicetus Motivational & Inspirational Quotes
  • “The moment you doubt whether you can fly, you cease forever to be able to do it.” J.M. Barrie Motivational & Inspirational Quotes
  • Azure Virtual Machine Azure Virtual Machine
  • How to take a screenshot on Google (Android) phones? Android phones
  • Interview question: What is the difference between dynamic type variables and object type variables? C# development
  • SQL Server Interview questions Interview questions

Interview question: What is the purpose of an access specifier in C#?

Posted on July 31, 2018 By DesiBanjara No Comments on Interview question: What is the purpose of an access specifier in C#?

The purpose of an access specifier is to define the scope and visibility of a class member.

C# provides five access specifiers: public, private , protected , internal and protected internal.

  1. Public access specifier allows a class to expose its member variables and member functions to other functions and objects. Any public member can be accessed from outside the class.
  2. Private access specifier allows a class to hide its member variables and member functions from other functions and objects. Only functions of the same class can access its private members. Even an instance of a class cannot access its private members.
  3. Protected access specifier allows a child class to access the member variables and member functions of its base class.
  4. Internal access specifier allows a class to expose its member variables and member functions to other functions and objects in the current assembly. In other words, any member with internal access specifier can be accessed from any class or method defined within the assembly in which the member is defined.
  5. Protected internal access specifier allows a class to hide its member variables and member functions from other class objects and functions, except child class within the same assembly.

[amazon_link asins=’8126538791,1788398076,1893115860,B01HVJZLQA,1491927062,1788478924,0198097409,1946383082,1430242337|1840787198,1430249358,1788398076,0735615683,0321637003,1118336925,1430235306,1491987650,1491988533′ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’45042f94-94df-11e8-aa61-7f817e4cc1dd’]

C# development, Interview questions, IT/Software development Tags:C#, C# development, Interview questions, IT/Software development, object oriented programming

Post navigation

Previous Post: C# Interview question: How encapsulation is implemented in C#?
Next Post: Interview question: What are nullable types in C#?

Related Posts

  • Interview question: What is the difference between dynamic type variables and object type variables? C# development
  • Interview question: How to sort an array in C#? C# development
  • Interview question: What are nullable types in C#? C# development
  • Interview question: What is encapsulation? C# development
  • Interview question: What are the two types of data type in C#? C# development
  • ASP.Net MVC Interview Questions ASP.Net MVC

Leave a Reply Cancel reply

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



Archives

  • February 2023
  • February 2022
  • June 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • December 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • January 2018
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • August 2015
  • May 2015
  • April 2014
  • November 2013

Categories

  • Acer
  • Amazon AWS Certification Exam
  • Amazon Kindle
  • Android phones
  • ASP.Net MVC
  • ASP.NET Web API
  • AWS DevOps Engineer Professional Exam
  • AZ-300: Microsoft Azure Architect Technologies Exam
  • Azure Active Directory
  • Azure App Services
  • Azure Data Factory
  • Azure Logic Apps
  • Azure Mobile Apps
  • Azure Virtual Machine
  • Best Wishes Messages
  • birthday messages for boyfriend
  • Birthday messages For Girlfriend
  • Birthday Wishes
  • Birthday Wishes For Mom
  • Business
  • C# development
  • Cameras
  • Canon
  • Cloud
  • Cloud services
  • digital-cameras
  • Diwali
  • Entrepreneurship
  • eReaders
  • Family Quotes
  • Family Quotes
  • Friendship Quotes
  • Gadgets
  • Games
  • Get Well Soon Messages
  • GIT
  • Good Morning Wishes
  • Google
  • Gratitude Quote
  • Guru Nanak Jayanti
  • Halloween
  • Happiness Quote
  • Happy Diwali Wishes
  • Happy Independence Day Wishes
  • Happy New Year Wishes
  • HTC
  • HTC One
  • HTML
  • I Miss You Messages
  • Inspirational Quotes
  • Inspirational Travel Quotes
  • Interview questions
  • IT/Software development
  • Leadership Quote
  • Life lessons
  • Love Quotes
  • Love shayari
  • Messages
  • Microsoft AI-900 Certification Exam
  • Microsoft AZ-104 Certification Exam
  • Microsoft AZ-204 Certification Exam
  • Microsoft AZ-900 Certification Exam
  • Microsoft Azure
  • Microsoft Azure certifications
  • Microsoft Exam AZ-220
  • Microsoft Excel
  • Microsoft Office
  • Microsoft word
  • Mobile phones
  • Motivational & Inspirational Quotes
  • Nature Quotes
  • Nexus
  • Nikon
  • Pixels
  • PL-200: Microsoft Power Platform Functional Consultant Certification
  • PL-900: Microsoft Power Platform Fundamentals
  • postman
  • Quotes
  • Robin Sharma
  • Samsung Galaxy S5
  • Self improvement quotes
  • Self-Confidence Quote
  • SonarQube
  • Sony PlayStation 4
  • SQL
  • SQL Server
  • Success Quotes
  • Travel Quotes
  • Uncategorized
  • Uplifting Quotes
  • WCF (Windows Communication Foundation)
  • Web development
  • Wishes
  • Wishes for Newborn Baby

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org



Recent Posts

  • Azure Data Factory
  • What is Azure Active Directory?
  • Azure Virtual Machine
  • Azure Logic Apps
  • Azure Mobile Apps

Recent Comments

  • Yosianus on Error while sending json model in POST request to web API service using postman
  • How many people are lucky enough to treat their headache and fever by the healing strokes of their mother? Happy Birthday Mom Birthday Wishes For Mom
  • Interview question: What is the use of NULL Coalescing Operator (??) in C#? Interview questions
  • “Inaction breeds doubt and fear. Action breeds confidence and courage. If you want to conquer fear, do not sit home and think about it. Go out and get busy.” Dale Carnegie Motivational & Inspirational Quotes
  • Sample Exam Questions 7: AZ-300: Microsoft Azure Architect Technologies AZ-300: Microsoft Azure Architect Technologies Exam
  • I just wanted to take the time and say Happy Birthday to my mom. I don’t know where I would be today without her. I love her to death. We don’t always agree on things, we don’t always get along, and we haven’t always had the greatest bond. But at the end of the day that’s my mother & I love her with everything in me, even though I don’t always show it. Thank you for everything mamma and I hope your day is as special as you are. Birthday Wishes For Mom
  • I know that the most special day in your life is my birthday. But today we are celebrating the most special day in my life – Your birthday. Happy birthday mom. Birthday Wishes For Mom
  • Microsoft AZ-220 Certification Exam Practice Questions – Part 3 Microsoft Exam AZ-220
  • Travel Quotes – A journey is best measured in friends Quotes

Copyright © 2023 Desi banjara.

Powered by PressBook News WordPress theme