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


INTERVIEW QUESTIONS MICROSOFT C# DETAILS
Question :
When you inherit a protected class-level variable?Who is it available to?


Category C# Interview Questions
Rating (5.0) By 14 users
Added on 7/28/2006
Views 1824
Rate it!
Answers:

ans:

Answer: Classes in the same namespace.



the member is only accessible to that class that contains it and the class that derives it.



 Posted by: sunshine    

Contact sunshine  Contact sunshine

It is available inside all subclasses and classes derived from it.



 Posted by: swaminathan     

Contact swaminathan   Contact swaminathan

derived classes of the same namespace



 Posted by: neha    

Contact neha  Contact neha

protected variables can be inherited only within the same namespce.(any class in this name space can inherit protected variables).



 Posted by: bharat    

Contact bharat  Contact bharat


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
Does C# support multiple inheritance?

View Answer

How do you inherit from a class in C#?


View Answer
What is an abstract class?

View Answer
What does the keyword virtual mean in the method definition?

View Answer
How's method overriding different from overloading?

View Answer
What's the top .NET class that everything is derived from?

View Answer
Describe the accessibility modifier protected internal.

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

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/9105/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.98