Microsoft
98-361 · Question #351
You are C# developer who is developing a Windows application. You develop a new class that must be accessible to all the code packaged in the same assembly. Even the classes that are in the same…
The correct answer is C. private. See the full explanation below for the reasoning.
Question
You are C# developer who is developing a Windows application. You develop a new class that must be accessible to all the code packaged in the same assembly. Even the classes that are in the same assembly but do not directly or indirectly inherit from this class must be able to access the code. Any code outside the assembly should not be able to access the new class. Which access modifier should you use to declare the new class?
Options
- Apublic
- Bprotected
- Cprivate
- Dinternal
How the community answered
(27 responses)- A11% (3)
- B7% (2)
- C78% (21)
- D4% (1)
Community Discussion
No community discussion yet for this question.