Which of the following statements is true about static members of a class?

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?
A. You can use the this keyword reference with a static method or property.
B. Only one copy of a static field is shared by all instances of a class.
C. Static members of a class can be used only after an instance of a class is created.
D. The static keyword is used to declare members that do not belong to individual objects but to a class itself.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.