Microsoft
98-361 · Question #349
You are developing a C# application. You need to decide whether to declare a class member as static. Which of the following statements is true about static members of a class?
The correct answer is D. The static keyword is used to declare members that do not belong to individual objects but. See the full explanation below for the reasoning.
Question
You are developing a C# application. You need to decide whether to declare a class member as static. Which of the following statements is true about static members of a class?
Options
- AYou can use the this keyword reference with a static method or property.
- BOnly one copy of a static field is shared by all instances of a class.
- CStatic members of a class can be used only after an instance of a class is created.
- DThe static keyword is used to declare members that do not belong to individual objects but
How the community answered
(26 responses)- A4% (1)
- B12% (3)
- C4% (1)
- D81% (21)
Community Discussion
No community discussion yet for this question.