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 / vakil vijay vamangari

Public: With respect to the assembly the variable,methods of
public class can be access any where .

Private: This is default in c#.net.With respect to the
assembly the variable,methods of private class can be
access only with in that class only.

Protected: With respect to the assembly the variable,methods
of protected class can be access with in that class(base
class) and accessed in class which is derived from that
base class.

Internal(friend in vb.net): With respect to the assembly the
variable,methods of internal class can be access with in
that assembly not the outside of that assembly

Protected Internal: Protected + Internal
With with respect to the assembly the variable,methods
of this class can be access with in that assembly and
protected out side the assembly

Is This Answer Correct ?    4 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a loop recorder have to be removed?

1024


Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana

1928


What is short in c#?

970


Can we inherit a class with private constructor in c#?

1049


Explain the advantage of using system.text.stringbuilder over system.string?

884


How do I create a single-file assembly?

1020


How does substring work in c#?

975


Why do we use class in c#?

926


What is the purpose of dictionary in c#?

894


What is string literal in c#?

1089


What is dictionary and hashtable in c#?

960


Are value types sealed?

980


What is the difference between an implicit conversion and an explicit conversion?

982


What are the types of comments in c#?

987


What is a delegate how is it type safe?

863