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 the difference between task and thread in .net?

1062


Explain what is the difference between response.redirect & server.transfer?

1084


Differences between namespace, class, assembly?

1020


Is .net a compiler?

1031


How to view a .NET assembly?

1016


Write the .net syntax for 'for loop'?

1013


What is the use of activex control in .net?

1036


What is singleton activation mode in .net?

1137


What is immutability?

1002


Define satelite assembly?

1048


Explain me difference between public and static modifiers?

1080


What are the improvements made in cas in .net 4.0?

953


One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?

946


What is the root class in .net?

1133


Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?

968