CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS MICROSOFT C# DETAILS
Question :
Describe the accessibility modifier protected internal.


Category C# Interview Questions
Rating (4.0) By 1 users
Added on 7/28/2006
Views 1793
Rate it!
Answers:

ans:

It's available to derived classes and classes within the same Assembly (and naturally from the base class it's declared in).



First you need to understand the meaning of each access modifier on its own:

Protected:
A protected member is accessible from within the class in which it is declared, and from within any class derived from the class that declared this member.

Internal:
Internal types or members are accessible only within files in the same assembly.

This means that a "protected internal" member (combination of these two) will be visible only to classes that derive from the class that declares that member *and* are declared in a file in the same assembly.



 Posted by: Kamal Kishor Bafila    

Contact Kamal Kishor Bafila  Contact Kamal Kishor Bafila

protected internal vareable is access in derived class and also in same namespace



 Posted by: rahilmohd    

Contact rahilmohd  Contact rahilmohd


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
Are private class-level variables inherited?

View Answer
When you inherit a protected class-level variable? Who is it available to?

View Answer
Does C# support multiple inheritance?

View Answer
How do you inherit from a class in C#?

View Answer
What's the implicit name of the parameter that gets passed into the class' set method?

View Answer
Is it mandatory to implement all the methods which are there in abstract class if we inherit that abstract class..?

View Answer


What is the difference between const and static read-only?



View Answer
How to fill datalist usinf XML file and how to bind it,code behind language is c#

View Answer
WHAT IS THE ADVANTAGE OF SERIALIZATION?

View Answer
How we hand sql exceptions? What is the class that handles SqlServer exceptions?

View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C# Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/9098/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.7