Posts

Showing posts with the label Protected

Access Modifier In C#

Access Modifier ·          Public - Access in assembly as well as in reference. Default public access modifier enum, Interface ·          Private - Access within the scope of curly braces ·          Protected - Access in base and derived class ·          Internal - Access within the assembly and within the program that contains its declaration. ·          Protected Internal - Can access anywhere in the same assembly   and inherited class in another assembly. public class Class : Class1     {         public void Method1( int num1)         {             //Public Variable //Accessable in derived class    ...