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

what is use of learning .net? does we get good jobs based on .net?

2 Answers  


Explain the use of activex control in .net?

0 Answers  


How to write an MMC snap-in for my Windows service?

1 Answers  


What is the base class of Button control?

2 Answers  


How to Create and Consume a Web Service?

1 Answers  


What is machine.config in .net?

0 Answers  


When should I use .net core?

0 Answers  


why do you want to join deloitte, where do you exactly fit in.

1 Answers   Deloitte,


What is the advantage of .net?

0 Answers  


What is a strong name in .net?

0 Answers  


What is the managed and unmanaged code in .net?

3 Answers   Deltech, Dhanush Infotech,


What is the difference between an abstract class and an interface?

0 Answers  


Categories