GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 58 of 436    Print  
When you inherit a protected class-level variable, who is it available to?
Classes in the same namespace.


  
Total Answers and Comments: 4 Last Update: November 14, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 10, 2006 09:38:39   #1  
sahu Member Since: December 2005   Contribution: 323    

RE: When you inherit a protected class-level variable,...

ans:

Answer: Classes in the same namespace.


 
Is this answer useful? Yes | No
June 19, 2007 00:24:52   #2  
rich        

RE: When you inherit a protected class-level variable,...

Namespaces is not correct - The protected modifier allows the field to be accessed only by the inherting class and the base class. If you were to put the modifier 'protected internal' then the field can be accessed by inheriting classes and also by classes in the same assembly (not namespace).


 
Is this answer useful? Yes | No
September 26, 2009 00:55:47   #3  
anil4kick Member Since: September 2009   Contribution: 1    

RE: When you inherit a protected class-level variable, who is it available to?
Protected level variable is available to only sub classes(i.e class inherited from this base class).
 
Is this answer useful? Yes | No
November 14, 2009 02:54:23   #4  
Basavarajayya Member Since: November 2009   Contribution: 2    

RE: When you inherit a protected class-level variable, who is it available to?
Its available only to the derived classes and not all the classes in the NameSpace
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape