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


What are the different access modifier? Explain in detail?

Answers were Sorted based on User's Feedback



What are the different access modifier? Explain in detail?..

Answer / imatoria

The access modifier on a property applies to both its get
and set accessors, so different modifiers can’t be applied
for same property.
1. Public- Accessible outside the class through object.
2. Private- Accessible inside the class by member
functions.
3. Protected- Just like private but accessible in derived
class also but by member functions.
4. Internal- Visible inside the Assembly. Accessible through
members. Logic is same as global private.
5. Protected Internal- Visible inside the assembly and
outside the assembly through derived classes.

Is This Answer Correct ?    5 Yes 0 No

What are the different access modifier? Explain in detail?..

Answer / pushparaj pentakota(anakapalli

public == accessble from any where,no restriction.
private == aceessble only from within the class only.
protected == accessble from same class and child class also
but not from non-child class.it may be within
project or out side of the project also.
internal == accessble only from same class and child class
and non-child class also but within the project
only.
protected internal == accessble from any where except
non-child class of out side of the
project.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net AllOther Interview Questions

What are public and private assemblies ?

0 Answers  


Is .net easier than java?

0 Answers  


server.transfer limitation ?

0 Answers  


What are the major differences between services and web services?

0 Answers  


How does .net mobile work? : Microsoft dot net mobile

0 Answers  


It was told that .Net 2.0 Framework has got it's in built webserver. Does it mean that it doesn't need IIS? What is the significance of Front Page Server Extensions in creating or hosting a Web Application in .net?

1 Answers   247Customer, Concentrix, Wipro,


How do I prevent concurrent access to my data?

0 Answers  


Explain about developer benefit from memory management?

0 Answers  


Explain about cookie less session state? : .NET Architecture

0 Answers  


What is .net mobile utility controls. : Microsoft dot net mobile

0 Answers  


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

0 Answers  


Explain about httpruntime.cach.get(); method?

0 Answers   Tech Mahindra,


Categories