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 about .Net products?

0 Answers  


i have 2 functions, int add(int a,int b); double add(int a,int b); does this code implement overloading? if not what will be the error?

4 Answers   Deloitte,


How will you load dynamic assembly? How will create assemblies at run time?

0 Answers   InfoAxon Technologies,


What is STA in .NET?

0 Answers  


Explain how garbage collection works?

0 Answers  


Give An example of a ctype and directcast.

2 Answers   Wipro,


How to debug failed assembly binds?

0 Answers  


What is Custom attribute? How to create? Namespace? If I'm having custom attribute in an assembly, how to say that name in the code? What is Reflection in .NET?

3 Answers   Accenture, CC Soft, Infosys,


Tell us the difference between the while and for loop. Provide a .net syntax for both loops?

0 Answers  


How does u handle this COM components developed in other programming languages in .NET?

0 Answers  


What is heap and what is stack?

0 Answers  


Explain what are the deferred execution and the immediate execution in linq?

0 Answers  


Categories