Skip to content

Desi banjara

  • “Talk to yourself like you would to someone you love.” Brené Brown Motivational & Inspirational Quotes
  • “I travel a lot; I hate having my life disrupted by routine.” – Caskie Stinnett Quotes
  • I celebrate this special day for a special someone who is the source of inspiration and guiding light for the entire family. Happy birthday dear mom! Birthday Wishes For Mom
  • Microsoft AZ-104 Certification Exam Practice Questions – 4 Microsoft AZ-104 Certification Exam
  • May your life be brighter As each birthday comes and goes With new happiness unfolding Like the petal of a rose Have a wonderful birthday! Birthday Wishes
  • On this wonderful day called birthday, I wish stars and moon for you. Birthday Wishes
  • May you continue to improve as a person with each passing year. Wishing you a very happy birthday. Birthday Wishes
  • Celebrate every birthday as your 18th birthday; amazingly weird yet memorable. Birthday Wishes

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

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 ref and out parameters? C# development
  • Interview question: What is mean by operators in C#? C# development
  • Interview question: What is the difference between dynamic type variables and object type variables? C# development
  • Interview question: What are nullable types in C#? C# development
  • C# interview Questions – What is struct in C#? C# development
  • Interview question: What is the use of “using” keyword in C#? C# development

Leave a Reply Cancel reply

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



Archives

  • 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
  • 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
  • Uncategorised
  • Uplifting Quotes
  • WCF (Windows Communication Foundation)
  • Web development
  • Wishes
  • Wishes for Newborn Baby

Meta

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



Recent Posts

  • PL-200: Microsoft Power Platform Functional Consultant Certification – Exam Practice Questions
  • SonarQube – Static code analysis
  • Microsoft PL-900 Certification Exam Practice Questions – 2
  • Microsoft AZ-204 Certification Exam Practice Questions – 1
  • AWS DevOps Engineer Professional Exam Practice Questions – 14

Recent Comments

  • Yosianus on Error while sending json model in POST request to web API service using postman
  • Sample Exam Questions 2: AZ-300: Microsoft Azure Architect Technologies AZ-300: Microsoft Azure Architect Technologies Exam
  • Microsoft AZ-900 Certification Exam Practice Questions – 6 Microsoft AZ-900 Certification Exam
  • Congratulations Messages for Newborn Baby Best Wishes Messages
  • Family Quotes – A mother’s love for her child is like nothing else Family Quotes
  • AWS DevOps Engineer Professional Exam Practice Questions – 6 AWS DevOps Engineer Professional Exam
  • WCF (Windows Communication Foundation) Interview questions ASP.NET Web API
  • AWS DevOps Engineer Professional Exam Practice Questions – 8 AWS DevOps Engineer Professional Exam
  • It is your birthday. Time to light the candles on the cake and enjoy the day with lots of fun and laughter. Wishing you a very happy birthday. Birthday Wishes

Copyright © 2022 Desi banjara.

Powered by PressBook News WordPress theme