Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the access-specifiers available in c#?

Answer Posted / faiyazul islam

public - allow to access member functions and member
variable of a class from other class that can be inside or
outside of namespace collection.

private - only allow to access member functions and member
variable of a class within the same class.

protected- allow to access member functions and member
variable of a class from within same class and child classes
that can be inside or outside the namespace collection.

internal - allow to access member functions and member
variable of a class from within same class and class within
the inside namespace collection.

internal protected - allow to access member functions and
member variable of a class from within same class and and
child class within the inside namespace.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between array and arraylist in c#?

1041


What is Garbage Collection in .Net?

1047


What is the difference between array and arraylist c#?

1080


Can abstract class have constructor in c#?

936


Is std :: string null terminated?

920


What are the advantages of properties in c#?

979


How does the lifecycle of Windows services differ from Standard EXE?

1022


How many constructors can a class have c#?

913


How assembly versioning in .NET prevent DLL Hell problem?

955


What is an enumerator in c#?

972


Is c# code is unmanaged or managed code?

1121


What is property c#?

950


Define encapsulation?

1091


Can we create instance of private class in c#?

908


what is scope of a protected internal member variable of a c# class

1014