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...

Explain the Scope of
public/private/friend/protected/protected friend.

Answer Posted / srikanth

Public is accessible to all classes and projects.

Private is accessible only in the block that is declared.

Friend is accessible only to all classes in the current
project only.

Protected is accessible to only the class the is declared
and the class that is derived from that class.

Protected Friend is accessible to all the classes in the
current project and all classes derived from those classes.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between static page and dynamic page?

1061


What's typical about a windows process in regards to memory allocation in .net?

1176


What is common type system (cts)?

1046


How many namespaces are in .net version 1.1?

1199


What is the difference between reference type and value type?

979


Explain what is an application domain?

1037


What is an exe and a dll?

1255


What should you do to store an object in a viewstate?

1139


Explain the purpose of Remoting in .NET?

1183


Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?

1160


What are pdbs?

1135


Can I write my own .net host?

1181


What does .net stand for?

1072


What is lambda expressions in c#?

1262


What is alias ? Is it used in .Net ?

1162