February 3, 2015

C# Oops Objective type question part 2

1. Can we instantiate static class?

(A) Yes
(B) No
(C) None of the above

2. Can static class contains non-static members?

(A) Yes
(B) No
(C) None of the above

3. Is Static class sealed?

(A) Yes
(B) No
(C) None of the above

4. Can we declare public constructor  inside static class?

(A) Yes
(B) No
(C) None of the above

5. Is it true? A private constructor prevents the class from being instantiated.

(A) Yes
(B) No
(C) None of the above


No comments:

Post a Comment