student Box Office

Learn more from here.

Jan 2, 2013

PDC Lab Manual

...

May 30, 2012

Access Specifiers Or Access Modifiers in C#

In encapsulation, before creating any types you must always consider scope of the type or visibility of the type.  C# provides various number of keywords to decide the scope, those are private(default one), public, internal, protected and protected internal. If you create any type without these keywords, by default it will take as private. Here we will discuss about each access specifier with an example. I created Class1.cs class which has several methods with the different access modifiers as shown below. namespace AccessSpecifiers {     public class Class1     {         public void display1()         {             Console.WriteLine("public...

Page 1 of 7112345Next

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More