Answers for "what are access modifiers in c#"

C#
15

C# Access Modifiers

'Modifier'	 | 'Description'
  public		  	The code is accessible for all classes
  
  private		 	The code is only accessible within the same class
    
  protected		 	The code is accessible within the same class, 
						or in a class that is inherited from that class. 
                    
  internal		 	The code is only accessible within its own assembly, 
						but not from another assembly.
Posted by: Guest on January-12-2021
2

what are access modifiers in c#

'Combination Modifier'| 'Description'
  protected internal    member is accessible to all class that extends
    					the given class and all other classes in the same
                        assembly
  
  private protected	 	accessible by types derived from the conataining 
  						class, but only within its countaining assembly
Posted by: Guest on May-06-2021

Code answers related to "what are access modifiers in c#"

C# Answers by Framework

Browse Popular Code Answers by Language