When you inherit a protected class-level variable, who is it available to?

Classes in the same namespace.

Showing Answers 1 - 10 of 10 Answers

rich

  • Jun 19th, 2007
 

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

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions