Understanding Protected, Internal and Protected Internal Access modifiers in OOPs - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Friday, March 30, 2012

Understanding Protected, Internal and Protected Internal Access modifiers in OOPs

We all know access modifiers are said to be 'Back-bone of OOPs '.Which seems to be very easy to remember (for interview purposes) but at the same time much difficult to show and understand by an example to someone when asked by anyone (at least for me J)

I digged-into it one fine Saturday morning and felt very happy to understand  all of them. Here I tried to show the behavior of three most important but 'confusing' Access Modifiers in C# .

1.       Protected(P)
2.       Internal(I)
3.       Protected Internal(PI)

3 comments: