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.



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

Answer / 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

More Dot Net General Interview Questions

Explain what is reflection in microsoft .net context?

0 Answers  


How to get the hostname or IP address of the server?

2 Answers  


What is concurrency? How will you avoid concurrency when dealing with dataset?

0 Answers  


can we use private assembly in other project in dot net.

3 Answers  


Explain the difference between static page and dynamic page?

0 Answers  


Difference between user groups and code groups

0 Answers  


Compare & contrast rich client (smart clients or windows-based) & browser-based web application

0 Answers  


What is .net and .net framework?

0 Answers  


Explain different types of html, web and server controls.

0 Answers  


Explain constructor.

2 Answers   Wipro,


How to load the contents of an xml file into an xmldocument object?

0 Answers  


What is cyclomatic complexity and why is it important?

0 Answers  


Categories