Q&A
Ask and answer questions to make information more available to wider audiences.
Rafael Adolphson @adolphsonrafael   06, Apr 2023 12:00 AM
C# access modifiers
What are the C# access modifiers?
answers 1
 
Answer 1
Beckett Fourcard @fourcardbeckett   08, Apr 2023 12:10 AM
The C# access modifiers are:
* Private Access Modifier - A private attribute or method is one that can only be accessed from within the class.
* Public Access Modifier - When an attribute or method is declared public, it can be accessed from anywhere in the code.
* Internal Access Modifier - When a property or method is defined as internal, it can only be accessible from the current assembly point of that class.
* Protected Access Modifier - When a user declares a method or attribute as protected, it can only be accessed by members of that class and those who inherit it.