×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What does the access modifier do in C#?

77. What does the access modifier do in C#?

  1. To maintain the syntax
  2. To define a variable inside the class
  3. To access the variables defined inside the class
  4. To control the visibility of class members

Answer: D) To control the visibility of class members

Explanation:

In C#, there are 4 types of access modifiers they are public, private, protected, and internal. And these access modifiers are used to control the visibility of class members (the security level of each individual class and class member).

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.